mardi 27 octobre 2015

Laravel 5. Dont work put and delete methods

MethodNotAllowedHttpException in RouteCollection.php

Route::put('inits/{init_id}/publication', ['as' => 'init.publication', 'uses' =>'Inits\InitsController@putPublicationInit']);

{!! link_to_route('init.publication', 'Publication', $init->id, ['class' => 'btn btn-control gray-lighter', 'data-method' => 'put', 'data-token' => csrf_token()] ) !!}

DELETE methods leads to GET. What is the problem?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire