芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/app/Providers/RouteServiceProvider.php
configureRateLimiting(); $this->routes(function () { // mobilemoney if (config('mobilemoney.is_active')) { Route::middleware('web') ->namespace($this->namespace) ->group(base_path('routes/mobile-money-web.php')); } Route::prefix('api/v2') ->middleware(['api', 'api_version:v2']) ->namespace("{$this->namespace}\Api\V2") ->group(base_path('routes/api_v2.php')); Route::prefix('api') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api.php')); Route::prefix(config('adminPrefix')) ->middleware('web') ->namespace($this->adminNamespace) ->group(base_path('routes/admin.php')); Route::middleware('web') ->namespace($this->namespace) ->group(base_path('routes/web.php')); }); } /** * Configure the rate limiters for the application. * * @return void */ protected function configureRateLimiting() { RateLimiter::for('api', function (Request $request) { return Limit::perMinute(60)->by(optional($request->user())->id ?: $request->ip()); }); } }