In Laravel, when this routing call is used
Route::resource('verb', 'VerbController');
these routings (among others) will be created
Route::get('/verb/{verb}', 'VerbController@show');
Route::get('/verb/create', 'VerbController@create');
But what happens if one of the identifiers of Verb is 'create' ? Then we could have this URI:
/verb/create
Should it be interpreted as "show me the verb with identifier 'create'" (first route), or should it be interpreted as "get me the view to create a new verb" (second route) ?
laravel php laravel 5 laravel 4 laravel with laravel tutorial
Aucun commentaire:
Enregistrer un commentaire