mardi 11 septembre 2018

MethodNotAllowedHttpException in RouteCollection.php line 200:

I have these route declaration here

//Skill
Route::get('skill','SkillController@index');
Route::get('skill/create','SkillController@create');
Route::post('skill/store','SkillController@store');
Route::get('skill/{id}','SkillController@show');
Route::get('skill/{id}/edit', 'SkillController@edit');
Route::post('skill/{id}/update','SkillController@update');
Route::delete('skill/{id}/destroy','SkillController@destroy');

With these routes, I can delete fine on local.

When I tried to delete on production, I kept getting

enter image description here

I know for sure, I had this line

Route::delete('skill/{id}/destroy','SkillController@destroy');

  • Local and Prod have the same codebase.
  • Local = Mac OS X
  • Prod = Ubuntu Server

What did I missed ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire