You should be able to wrap the routes in a group,
Route::group(array('before' => 'auth'), function()
{
.... normal routes here
});
or if you have a admin path you could use
Route::group(array('prefix' => 'admin', 'before' => 'auth'), function()
{
... normal routes here
});
This would be for the \admin\blah path.
You can also nest groups... here is a snip from my admin routes
Route::group(array('prefix' => 'admin', 'before' => 'auth'), function()
{
Route::group(array('prefix' => 'pages'), function()
{
Route::get('/', array('as' => 'admin-pages', 'uses' => 'Wpb\AdminModule\Controllers\PageController@getIndex'));
});
});
Answers the path \admin\pages\
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community