Level 88
You can use the default auth middleware for that in your web.php file
Route::middleware('auth')->group(function(){
// write your route here...
});
Or for a specific route
Route::get('protected-area', 'YourController@index')->middleware('auth');
1 like