|
|
@ -3,7 +3,7 @@ |
|
|
namespace App\Exceptions; |
|
|
namespace App\Exceptions; |
|
|
|
|
|
|
|
|
use Log; |
|
|
use Log; |
|
|
use Exception; |
|
|
|
|
|
|
|
|
use Throwable; |
|
|
use Illuminate\Auth\AuthenticationException; |
|
|
use Illuminate\Auth\AuthenticationException; |
|
|
use Illuminate\Auth\Access\AuthorizationException; |
|
|
use Illuminate\Auth\Access\AuthorizationException; |
|
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
|
|
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; |
|
|
@ -29,10 +29,10 @@ class Handler extends ExceptionHandler |
|
|
* |
|
|
* |
|
|
* This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
|
|
* This is a great spot to send exceptions to Sentry, Bugsnag, etc. |
|
|
* |
|
|
* |
|
|
* @param \Exception $exception |
|
|
|
|
|
|
|
|
* @param \Throwable $exception |
|
|
* @return void |
|
|
* @return void |
|
|
*/ |
|
|
*/ |
|
|
public function report(Exception $exception) |
|
|
|
|
|
|
|
|
public function report(Throwable $exception) |
|
|
{ |
|
|
{ |
|
|
parent::report($exception); |
|
|
parent::report($exception); |
|
|
} |
|
|
} |
|
|
@ -41,10 +41,10 @@ class Handler extends ExceptionHandler |
|
|
* Render an exception into an HTTP response. |
|
|
* Render an exception into an HTTP response. |
|
|
* |
|
|
* |
|
|
* @param \Illuminate\Http\Request $request |
|
|
* @param \Illuminate\Http\Request $request |
|
|
* @param \Exception $exception |
|
|
|
|
|
|
|
|
* @param \Throwable $exception |
|
|
* @return \Illuminate\Http\Response |
|
|
* @return \Illuminate\Http\Response |
|
|
*/ |
|
|
*/ |
|
|
public function render($request, Exception $exception) |
|
|
|
|
|
|
|
|
public function render($request, Throwable $exception) |
|
|
{ |
|
|
{ |
|
|
return parent::render($request, $exception); |
|
|
return parent::render($request, $exception); |
|
|
} |
|
|
} |
|
|
|