When I visit route A, a page is shown with a form with an action path to route B. When visiting this page I get the following error:
MethodNotAllowedHttpException
in RouteCollection.php (line 251)
at RouteCollection->methodNotAllowed(array('POST'))
in RouteCollection.php (line 238)
et cetera.....
ROUTE A
Route::get('to/connector/{id}/edit', [
'as' => 'connector.edit',
'uses' => 'Connector\ConnectorController@edit'
])->middleware('can:update-application-settings');
ROUTE B
Route::post('to/connector/{id}', [
'before' => 'csrf',
'as' => 'connector.update',
'uses' => 'Connector\ConnectorController@update'
])->middleware('can:update-application-settings');
However, as soon as i delete {id} from ROUTE B no error is shown. I really don't understand why this is going wrong, as this method works for other routes. Could someone please tell me what is going wrong?
If more information is needed, please let me know.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fvpUd9
via IFTTT
Aucun commentaire:
Enregistrer un commentaire