📅  最后修改于: 2022-03-11 14:53:43.905000             🧑  作者: Mango
//If it didn't help (still, keep routes.php without web middleware), you can try little bit different approach:
return redirect()->back()->with('message', 'IT WORKS!');
// Displaying message if it exists:
@if(session()->has('message'))
{{ session()->get('message') }}
@endif