app['url']->isValidUrl($rootUrl)) { $this->app['url']->forceRootUrl($rootUrl); } } if (option('force_ssl')) { $this->app['url']->forceSchema('https'); } Event::listen(Events\RenderingHeader::class, function($event) { // provide some application information for javascript $blessing = array_merge(Arr::except(config('app'), ['key', 'providers', 'aliases', 'cipher', 'log', 'url']), [ 'baseUrl' => url('/'), ]); $event->addContent(''); }); } /** * Register any application services. * * @return void */ public function register() { // register default cipher $this->app->singleton('cipher', "App\Services\Cipher\\".config('secure.cipher')); $this->app->singleton('users', \App\Services\Repositories\UserRepository::class); } }