Support the ongoing development of Laravel.io →
posted 8 years ago
Forms
Last updated 1 year ago.
0

If you want to have access to the data in the controller use the $formData=Request::all() Otherwise if you want to access the validation errors in the view var_dump($errors) in your view. Hope it helps :)

0

What I needed was to have access to the data into the view. I've just solved appending the ->withInput() method when the user is redirected to the form and then using old() to get the previous sent values.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Kumidan kumidan Joined 29 Apr 2015

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.