I just tried Laravel 5 after a time at 4.2..
The docs says it is possible to use 'before' => 'auth'
as always, but for me it does not work.
I have no idea whats wrong, I have read the docs, search on internet but seems not to find anything. My code looks as:
$router->group(['before' => 'auth'], function($router)
{
//
$router->get('admin', function()
{
return View::make('admin.index');
});
//
$router->get('login', function()
{
return View::make('admin.login');
});
});
Anyone can see what I doing wrong here?