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') }}
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.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community