1return redirect()->back()->with('message', 'IT WORKS!');
2
3Displaying message if it exists:
4
5@if(session()->has('message'))
6 <div class="alert alert-success">
7 {{ session()->get('message') }}
8 </div>
9@endif
1//If it didn't help (still, keep routes.php without web middleware), you can try little bit different approach:
2
3return redirect()->back()->with('message', 'IT WORKS!');
4// Displaying message if it exists:
5
6@if(session()->has('message'))
7 <div class="alert alert-success">
8 {{ session()->get('message') }}
9 </div>
10@endif