configureRateLimiting(); $this->routes(function () { Route::prefix('api') ->middleware('api') ->group(base_path('routes/api.php')); Route::middleware('web') ->group(base_path('routes/web.php')); }); } /** * Declare the named rate limiters this application offers. */ protected function configureRateLimiting(): void { RateLimiter::for('api', fn (Request $request) => Limit::perMinute(60)); } }