Created
April 11, 2018 09:12
-
-
Save sokhomhuy/40c0db8be7daaa018234eb32003ed932 to your computer and use it in GitHub Desktop.
Laravel : The page has expired due to inactivity. Please refresh and try again.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
please check this out by update app->Exceptions->Handler.php | |
public function render($request, Exception $exception) | |
{ | |
if ($exception instanceof \Illuminate\Session\TokenMismatchException) | |
{ | |
return redirect() | |
->back() | |
->withInput($request->except('password')) | |
->with([ | |
'message' => 'Validation Token was expired. Please try again', | |
'message-type' => 'danger']); | |
} | |
return parent::render($request, $exception); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment