It seems like you want to protect some route from being accessed by non logged users. The best way to do that is so use route groupes :
Route::group([ 'before' => 'auth' ], function(){
// Your routes for logged-in user here
});
Route::group([ 'before' => 'guest' ], function(){
// Your routes for guest user here
});
Thank you for the reply. I'm aware of the that method, I just don't understand why this: http://laravel.com/docs/controllers#controller-filters , doesn't work for me.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community