Skip to content

Commit

Permalink
Update Handler.php
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwijaya-dev authored Aug 5, 2021
1 parent 108cbbb commit be91d63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
use Illuminate\Support\Facades\Session;
use Illuminate\Validation\ValidationException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Throwable;

class Handler extends ExceptionHandler
{
Expand All @@ -29,7 +30,7 @@ class Handler extends ExceptionHandler
'password_confirmation',
];

public function report(Exception $exception)
public function report(Throwable $exception)
{
if($exception instanceof NotFoundHttpException ||
$exception instanceof ValidationException)
Expand Down Expand Up @@ -81,7 +82,7 @@ public function report(Exception $exception)
* @param \Exception $exception
* @return \Illuminate\Http\Response
*/
public function render($request, Exception $exception)
public function render($request, Throwable $exception)
{
if($request->ajax()){

Expand Down

0 comments on commit be91d63

Please sign in to comment.