cmsプロジェクトにlaravel 4を使用していますが、ルートに問題があります...
これらは私の現在のルートです
Route::get('/', 'IndexController@showNews');
Route::get('/logout', 'UserController@logout');
Route::resource('/login', 'UserController');
Route::resource('/user', 'UserController@index');
Route::resource('/user/{route}', 'UserController');
// Routes that shows us the pages...
Route::get('/{page}', 'IndexController@showPage');
Route::get('/{page}/{id}', 'IndexController@showPage');
ユーザールートには、ユーザー情報をルーティングするカスタムルーターがありますが、実際には問題ありません。しかし、それはすべてうまく機能しますが、テストページにリンクする「/test」に移動しようとすると、このエラーが発生します。
Route pattern "/user/{route}/{{route}}" cannot reference variable name "route" more than once.
それはルーターのロジックになります。私はlaravelにはかなり慣れていません。この問題を回避する方法はありますか? これは、user/route ワイルドカードと /route ワイルドカードの衝突です。