I'ld update the passenger details for that i'm using model binding to auto populate the fields. Here is my view code,
{!! Form::model($edit, ['method' => 'PATCH','route' =>
['PassengerController@update', $edit->id]]) !!}
It shows the error Route [PassengerController@update] not defined
And Controller code,
public function update(Request $request,$id)
{
move::find($id)->update($request->all());
return redirect()->route('passenger')
->with('success','Post updated successfully');
}
I can't understand the model binding route,Can anyone help me
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire