app->bind(AuthServiceInterface::class, AuthService::class); $this->app->bind(AdminServiceInterface::class, AdminService::class); $this->app->bind(UserServiceInterface::class, UserService::class); } public function boot(): void { if (str_starts_with(config('app.url'), 'https://') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] === 'https')) { \Illuminate\Support\Facades\URL::forceScheme('https'); } if (config('app.debug')) { DB::listen(function ($query) { Log::channel('query')->info( sprintf( "[%s ms] %s | Bindings: %s", $query->time, $query->sql, json_encode($query->bindings) ) ); }); } } }