app->bind('ssh', function () { return new SSH; }); $this->app->bind('notifier', function () { return new Notifier; }); $this->extendSocialite(); if (str(config('app.url'))->startsWith('https://')) { URL::forceScheme('https'); } } /** * @throws BindingResolutionException */ private function extendSocialite(): void { $socialite = $this->app->make('Laravel\Socialite\Contracts\Factory'); $socialite->extend( 'dropbox', function ($app) use ($socialite) { $config = $app['config']['services.dropbox']; return $socialite->buildProvider(DropboxProvider::class, $config); } ); } }