Try this:
if ($e instanceof \Illuminate\Session\TokenMismatchException) {
Session::flash('error_msg', 'Error');
return response()->redirectTo('/');
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community