Support the ongoing development of Laravel.io →
Requests Forms Validation
Last updated 6 months ago.
0

Isn't that supposed to be your edit page? You're in the update method, so I'm guessing that is because of a form being submitted, hence the redirect using back() seems fine to me?

Last updated 5 years ago.
0

Your code seems fine return redirect()->back()->withErrors($validator)->withInput();. Post information if you facing any issue.

Last updated 5 years ago.
0

Sign in to participate in this thread!

LoadForge

Your banner here too?

Moderators

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

Your logo here?

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

© 2022 Laravel.io - All rights reserved.