src/Http/Middleware/VerifyCsrfToken.php
public function handle($request, Closure $next)
    {
        try {

            return parent::handle($request, $next);

        } catch (TokenMismatchException $e) {

            if ( ! $request->ajax() && ! $request->wantsJson()) {
                return redirect()->back()->withInput()->with('token', csrf_token());
            }

            return response('CSRF Token Mismatch', 500);
        }
    }
public function handle($request, Closure $next)
    {
        try {

            return parent::handle($request, $next);

        } catch (TokenMismatchException $e) {

            if ( ! $request->ajax() && ! $request->wantsJson()) {
                return redirect()->back()->withInput()->with('token', csrf_token());
            }

            return response('CSRF Token Mismatch', 500);
        }
    }
public function handle ( $ request , Closure $ next ) { try { return parent :: handle ( $ request , $ next ) ; } catch ( TokenMismatchException $ e ) { if ( ! $ request -> ajax ( ) && ! $ request -> wantsJson ( ) ) { return redirect ( ) -> back ( ) -> withInput ( ) -> with ( 'token' , csrf_token ( ) ) ; } return response ( 'CSRF Token Mismatch' , 500 ) ; } }
Overridden to catch exception and redirect to login instead.

{@inheritdoc}
Overridden to catch exception and redirect to login instead .