eslym / laravel-error-report
Better error reports for laravel
2.1.0
2019-07-26 05:12 UTC
Requires
- php: >=7.1
- ext-json: *
- filp/whoops: ^2.2
- illuminate/config: >=5.6 <6.0
- illuminate/console: >=5.6 <6.0
- illuminate/database: >=5.6 <6.0
- illuminate/http: >=5.6 <6.0
- illuminate/routing: >=5.6 <6.0
- illuminate/support: >=5.6 <6.0
- ramsey/uuid: ^3.7
README
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
- Migrate database
- Use the report function
- 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();