andreapollastri/laratrack

Error Tracking Client for Laravel.

v1.0 2021-11-24 23:31 UTC

This package is auto-updated.

Last update: 2022-01-26 09:24:53 UTC


README

Error Tracking Client For Laravel

Installation

  • Install client vendor:
composer require andreapollastri/laratrack
  • Update app/Exceptions/Handler.php file adding:
    public function report(Throwable $exception)
    {
        $log = New \Andr3a\Laratrack\Laratrack();
        $log->shouldReport($exception);

        parent::report($exception);
    }
  • Add these vars into your .env file:
LARATRACK_API_KEY=<YOUR-LARATRACK-API-KEY>
LARATRACK_ENDPOINT=<YOUR-LARATRACK-API-URL>