Support the ongoing development of Laravel.io →
Input Views Forms
Last updated 2 years ago.
0

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);
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

mgebala8 mgebala8 Joined 6 Jul 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.