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

The FormRequest rules check the input of the form for validity but your id is in the query.

0

ftiersch said:

The FormRequest rules check the input of the form for validity but your id is in the query.

Can you explain little bit? because I am a beginner

Last updated 9 years ago.
0

You put the foodtype ID in the URL of the form:

{{ $foodtype->id }}

Your EditFoodtypeRequest is responsible for validating the content of the form, so the input fields. In the rules array you could validate the type field, not the ID field. Validating a URL parameter should be done somewhere else I think.

0

I will try this. Thank you soo much.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

wipflash wipflash Joined 7 Sep 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.