openclassify/app/Exceptions/ExceptionHandler.php
2020-11-30 18:07:59 +03:00

22 lines
348 B
PHP

<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Foundation\Exceptions\Handler;
class ExceptionHandler extends Handler
{
public function report(Exception $e)
{
if (app()->bound('sentry') && $this->shouldReport($e)) {
app('sentry')->captureException($e);
}
parent::report($e);
}
}