My flash messages are not displaying on the view. I have tried post SO questions but didn't worked. Here is my controller code:
use Session;
//other code
//my code to set flash message and redirect it
\Session::flash('message', $message);
return redirect('admin/groups/add');
My View code:
@if(Session::has('message'))
<div class="alert alert-danger" id="alert_danger">
{!!Session::get('message')!!}
</div>
@endif
I don't know where I am going wrong.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HTRWPn
via IFTTT
Aucun commentaire:
Enregistrer un commentaire