Today stopped working DELETE
and PUT
methods with link_to_route
MethodNotAllowedHttpException in RouteCollection.php
Route:
Route::put('inits/{init_id}/publication', ['as' => 'init.publication', 'uses' =>'Inits\InitsController@putPublicationInit']);
Blade:
{!! 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?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1O4ZYlJ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire