Looking to hire Laravel developers? Try LaraJobs

laravel-error-report maintained by eslym

Description
Better error reports for laravel
Author
Last update
2019/07/26 07:12 (dev-master)
License
Links
Downloads
122

Comments
comments powered by Disqus

Better Error Reports for Laravel

Why this package exists? Sometimes errors happens on production but default error report does not log the environment variables and etc. It is hard to track the error with limited information but its too heavy for server to store all information. This package will detect repeated errors and store only limited sample for each error.

Installation

composer install eslym/laravel-error-report ^2.0

Usage

  1. Migrate database
  2. Use the report function
  3. Schedule cleanup
// app/Exceptions/Handler.php
...
    public function report(Exception $exception)
    {
        if($this->shouldReport($exception)){
            \Eslym\ErrorReport\Facades\Reporter::report($exception);
        }
    }
...
// app/Console/Kernel.php
$schedule->command('errors:cleanup')
         ->daily();