Route "login" does not exist while logged out
I've got a FAQ page protected with authorization like this:
// Auth
Route::get('/', '\controllers\AuthController@form');
Route::get('login', '\controllers\AuthController@form');
Route::group(array('before' => 'auth'), function() {
// FAQ
Route::get('faq', '\controllers\FaqController@overview');
});
When I am logged in and I go to the FAQ page, everything works fine.
When I am logged off and I go to the FAQ page, I get this error:
RouteNotFoundException: Route "login" does not exist.
As you can see in my routing above, there is a login routing. Also,when directly calling localhost/login in my browser, I get the authorization form as stated in the routing.
So far I didn't find any mistake in my project or a setting I missed, so my guess is that this is a bug.
Look at filters.php... the auth filter redirects to a login named route. If you're not logged in. You can change this behavior there.
Damn... missed that. Sorry for making a report here.
I created a pull request over at Symfony to make that error message a little clearer.