app['request']->server->set('HTTPS', 'on'); Vite::prefetch(concurrency: 3); Model::shouldBeStrict(!$this->app->environment('production')); // * HTTPS FIX URL::forceScheme('https'); // * HA PROXY FIX App::singleton('clientIp', function () { return (config('app.env') === 'local') ? request()->getClientIp() : request()->server('HTTP_X_FORWARDED_FOR') ?? request()->getClientIp(); }); // * LOCAL FORCE eg: for Carbon setlocale(LC_ALL, \sprintf( '%s_%s.UTF-8', config('app.locale'), \strtoupper(config('app.locale')) )); Carbon::setLocale(config('app.locale')); } /** * Register any application services. */ public function register(): void { if ($this->app->environment('local')) { $this->app->register(TelescopeServiceProvider::class); $this->app->register(CustomTelescopeServiceProvider::class); } } }