I have action named getuser
which is called by ajax
.
public function getuser()
{
Session::flash('message', 'This is a message!');
Session::flash('alert-class', 'alert-danger');
exit;
}
And into view i have code like this,
@if(Session::has('message'))
<p class="alert {{ Session::get('alert-class', 'alert-info') }}">{{ Session::get('message') }}</p>
@endif
But not working for me. Any suggestion?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1LInFsQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire