When I flash one particular message it shows on localhost but not on production server. What can be cause of this problem.All other messages are shown but not this one
//Blade Template
@if (count($errors) > 0)
<div class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<ul>
@foreach ($errors->all() as $error)
<li></li>
@endforeach
</ul>
</div>
@endif
@foreach (['danger', 'warning', 'success', 'info'] as $msg)
@if(session('alert-' . $msg))
<div class="alert alert-">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
</div>
@endif
@endforeach
//Controller Code
return redirect('url')->with('alert-danger','All lines are already reserved, Please try again later.');
``
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire