First of all I'd recommend you to use Blade templating for the form Laravel docs
If I understand you correctly, you want this:
{{ $errors->first('login') }}
Or if you want to style it inside a tag, pass in a second parameter as this:
{{ $errors->first('login', '<span class="error">:message</span>') }}
It should be placed inside the form
And perhaps it would be better to return
return Redirect::back()->withInput()->withErrors($validator);
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community