Support the ongoing development of Laravel.io →
Input Validation
Last updated 1 year ago.
0

You can use

.....
return redirect()->back()->withInput()->withErrors($validator);
.....

To show errors. You can read this link more information

http://laravel.com/docs/5.0/validation#error-messages-and-views

0

It works, thanks!

I learned that using "withInput()" there is no need to flash the data first or store them in a session manually. Nice and short solution!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

php-it php-it Joined 22 Nov 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.