Lef*_*eff 1 php routes laravel
我正在研究一个遗留代码,一个用Laravel 5.2构建的项目,我收到一个错误:
Route pattern "/api/v0/taxonomy/{term}/{{term}}" cannot reference variable name "term" more than once.
Run Code Online (Sandbox Code Playgroud)
对于这条路线:
/post/106
Run Code Online (Sandbox Code Playgroud)
这是我的路线:
Route::group(['prefix' => 'api'], function() {
Route::group(['prefix' => 'v0'], function () {
Route::get('route/{a?}/{b?}/{c?}/{d?}', 'DynamicRouteController@resolve');
Route::get('id/{id}', 'DynamicRouteController@resolveId');
Route::get('search', 'SearchController@search');
Route::resource('taxonomy/{term}','TaxonomyController');
});
});
Run Code Online (Sandbox Code Playgroud)
不确定,为什么我会收到此错误?
| 归档时间: |
|
| 查看次数: |
3073 次 |
| 最近记录: |