Laravel - Using (:any?) wildcard for ALL routes?
问题 I am having a bit of trouble with the routing. I'm working on a CMS, and i need two primary routes. /admin and /(:any) . The admin controller is used for the route /admin , and the view controller should be used for anything else than /admin . From the view controller, i will then parse the url and show the correct content. This is what i have: Route::get(array('admin', 'admin/dashboard'), array('as' => 'admin', 'uses' =>'admin.dashboard@index')); Route::any('(:any)', 'view@index'); The first