All routes inside this middleware must be authenticated

PHOTO EMBED

Tue Jun 15 2021 06:17:49 GMT+0000 (Coordinated Universal Time)

Saved by @SnazzyS #laravel

Route::middelware(['auth'])->group(function (){

    Route::get('/', function () {
        return view('welcome');
    });

    Route::get('/dashboard', function (){
        return view('dashboard');
    })->name('dashboard');

});
content_copyCOPY