Nasr1's avatar
Level 1

MethodNotAllowedHttpException

hello good people , this is my update route :

Route::put('/buses/{id}', 'busController@update');

this is the top of my edit view

{!! Form::model($bus,['route'=>['buses.update',$bus->Id], 'method'=> 'PUT']) !!}

now how to get rid of this MethodNotAllowedHttpException

thanks guys :)

0 likes
2 replies
Dry7's avatar
Dry7
Best Answer
Level 36
Route::put('/buses/{id}', 'busController@update')->name('buses.update');

Please or to participate in this conversation.