Downloads
Stars
Version
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.
composer install eslym/laravel-error-report ^2.0
// 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();