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

With Form::model's fields, you shouldn't pass in the second argument and you should use the field type as the method name. So, instead of...

{{ Form::input('number', 'customer_id') }}

...you would want to do use:

{{ Form::number('customer_id') }}
Last updated 1 year ago.
0

Instead of opening a new thread, I'll just ask here because it's relevant:

Is there a way to pass two models in Form::model()? As far as I've seen from the API, there isn't, but I'm asking just in case I've overlooked something, or for an alternative.

Thanks in advance.

Last updated 1 year ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.