app->scoped(Setting::class, function (Application $app) { return new Setting(); }); } /** * Bootstrap services. * * @return void */ public function boot() { // dpl keeps its existing environment and database settings. foreach (['name','full_name'] as $field) { if (config('site.'.$field) !== null) config(['app.'.$field => config('site.'.$field)]); } // App URL is forced per-request via middleware (Octane-safe). } }