app->isLocal() && \config('app.debug')) { $this->app->register(\Laravel\Telescope\TelescopeServiceProvider::class); $this->app->register(TelescopeServiceProvider::class); $this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class); } if (File::exists(base_path().'/.env') && Schema::hasTable('config') && DB::table('config')->exists()) { $this->app->register(SettingServiceProvider::class); } } /** * Bootstrap any application services. */ public function boot(): void { Paginator::useBootstrap(); // 检测是否强制跳转https if (env('SESSION_SECURE_COOKIE', false)) { // todo URL::forceScheme('https'); } Config::observe(ConfigObserver::class); Node::observe(NodeObserver::class); Order::observe(OrderObserver::class); UserGroup::observe(UserGroupObserver::class); User::observe(UserObserver::class); } }