芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/portpulselogistics.com/app/Providers/RouteServiceProvider.php
configureRateLimiting(); Route::pattern('slug', '[a-z0-9-]+'); $this->routes(function () { $this->mapAdminRoutes(); if(env('INSTALLATION', false) == false){ $this->mapInstallRoutes(); }else { Route::prefix('api') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api.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()); }); } protected function mapInstallRoutes() { Route::middleware('web') ->namespace($this->namespace) ->group(base_path('routes/install.php')); } protected function mapAdminRoutes() { Route::middleware('web') ->namespace($this->namespace) ->group(base_path('routes/admin.php')); } }