app->bind(SmsSender::class, function ($app) { return (bool) config('sms.enabled') ? $app->make(TencentCloudSmsSender::class) : $app->make(DisabledSmsSender::class); }); } /** * Bootstrap any application services. */ public function boot(): void { if (str_starts_with((string) config('app.url'), 'https://')) { URL::forceScheme('https'); } } }