You can make a Route::group to do this!
http://laravel.com/docs/routing#route-groups
So for example
Route::filter('auth', function()
{
if (Auth::check())
{
// Redirect to admin area
}
Redirect::to('login');
});
Route::group(array('before' => 'auth'), function()
{
Route::controller('news', 'NewsController');
Route::controller('article', 'ArticleController');
Route::controller('albume', 'AlbumeController'
Route::controller('staticcontent', 'StaticContentController');
Route::controller('links', 'LinksController');
// More routes to add...
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community