I have the following code, In which i am checking for error.
<div class="alert alert-danger {{ (\Session::has('message') && \Session::get('form', 'login') == 'login') ? '' : 'display-hide' }}">
<button class="close" data-close="alert"></button>
<span>
{!! \Session::has('message') ? \Session::get('message') : 'Please correct your fields.' !!}
</span>
</div>
On the controller side i have :
return redirect()
->back()
->with('message', 'Incorrect email or password.')
->with('form', 'login')
->withInput(\Input::except('password'));
The thing is that the message is not showing there.
Just the page refreshes and no message comes up.
Any idea ? Am i missing something ?