Route::middleware([CheckAge::class])->group(function () { Route::get('/', function () { // }); Route::get('admin/profile', function () { // })->withoutMiddleware([CheckAge::class]); });