middleware routes auth check code example
Example 1: laravel route multiple middleware
Route::get('/', function () {
//
})->middleware('first', 'second');
Example 2: middleware command in laravel
php artisan make:middleware NameOfTheMiddleware
Route::get('/', function () {
//
})->middleware('first', 'second');
php artisan make:middleware NameOfTheMiddleware