I upgraded from 5.2 to 5.3 and ran into a strange issue. When I render a view from a controller passing 2 objects, $prospect
and $patient
, then do a Form::open()
with the following code.
{!! Form::open(['method'=>'POST', 'action'=>['ProsController@patientUpdate']]) !!}
{!! Form::close() !!}
The $prospect->id
is populated by the $patient->id
If I change
to
<input type="hidden" name="id" value="" />
Everything is fine... is it somehow binding to the form without using Form::model()
?
I have no idea what is up, I have this issue in 2 places where the same form is shared, I am trying to determine if this is something to do with pulling the form in with ajax, but it worked fine in Laravel 5.2
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2shALeL
via IFTTT
Aucun commentaire:
Enregistrer un commentaire