It could be built as a route filter, but i would say the best an easiest way is to make a grouped route with auth-filter and simply put all routes except for auth related stuff there.
And here's the code
Route::group(['before'=>'auth'], function() {
// put your routes here
});
Route::get('login', function() {
});
Route::get('register', function() {
});
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community