Skip to content

Commit

Permalink
fix extending Laravel Exception Handler
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Bohollo Sáez committed Jun 25, 2022
1 parent 1fa827f commit d22c999
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Admin/Exceptions/CustomExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(Container $container, ExceptionHandlerContract $appE

public function render($request, Throwable $e)
{
if ($exception instanceof TokenMismatchException) {
if ($e instanceof TokenMismatchException) {
return redirect()->route('editora.action', 'logout');
}

Expand Down
2 changes: 1 addition & 1 deletion src/Admin/Exceptions/CustomExceptionHandlerOld.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct(Container $container, ExceptionHandlerContract $appE
public function render($request, \Exception $e)
{

if ($exception instanceof TokenMismatchException) {
if ($e instanceof TokenMismatchException) {
return redirect()->route('editora.action', 'logout');
}

Expand Down

0 comments on commit d22c999

Please sign in to comment.