crypt4/jantung-laravel

Handle Laravel Exception Events

1.0.1 2023-06-17 21:53 UTC

This package is auto-updated.

Last update: 2024-04-17 23:41:35 UTC


README

Build Status

Jantung Laravel Client

Jantung is a simple issue tracker for monitoring your application crashes. This package developed for Laravel framework.

Installation

  • Requirements
  • Installing Jantung

Requirements

Jantung has a few requirements you should be aware of before installing:

  • Composer
  • Laravel Framework 7+

Installing Jantung

composer require crypt4/jantung-laravel
php artisan jantung:install

After running this command, verify that the jantung.php was added to the config/ directory.

You can choose between Log Method or HTTP Method. You just need to setup .env for it.

Log Method .env setup

JANTUNG_ENABLED=true
JANTUNG_QUERY_SLOW_THRESHOLD=500
JANTUNG_DRIVER=log

HTTP Method .env setup

JANTUNG_ENABLED=true
JANTUNG_QUERY_SLOW_THRESHOLD=500
JANTUNG_DRIVER=http
JANTUNG_ENDPOINT="https://jantung.zahir.my/api"
JANTUNG_KEY=
JANTUNG_TOKEN=

Test connectivity with Jantung API:

php artisan jantung:test

Then create your application here and copy the application's key and paste in the JANTUNG_TOKEN in your .env file..

Then create your API Token here and copy the token and paste in the JANTUNG_KEY in your .env file.

Once updated your .env, you need to run the following command to verify the connection to Jantung API is configured correctly:

php artisan jantung:verify