how to redirect to login page when Laravel 419 error
App\Exceptions\Handler.php class, within the register() method, add the following:
$this->renderable(function (\Exception $e) {
if ($e->getPrevious() instanceof \Illuminate\Session\TokenMismatchException) {
return redirect()->route('login');
};
});
breeze
删除评论
您确定要删除此评论吗?
breeze
删除评论
您确定要删除此评论吗?