diff --git a/.env.example b/.env.example index 33ae4ca..82a986b 100644 --- a/.env.example +++ b/.env.example @@ -4,6 +4,7 @@ APP_KEY= APP_DEBUG=true APP_URL=http://localhost +APP_TIMEZONE='Asia/Kolkata' APP_LOCALE=en APP_FALLBACK_LOCALE=en APP_FAKER_LOCALE=en_US diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php index 9a78be2..fccf549 100644 --- a/app/Providers/AppServiceProvider.php +++ b/app/Providers/AppServiceProvider.php @@ -24,14 +24,6 @@ public function register(): void */ public function boot(): void { - if (request()->server('HTTP_X_FORWARDED_PROTO') === 'https' || request()->isSecure()) { - URL::forceScheme('https'); - - if ($forwardedHost = request()->server('HTTP_X_FORWARDED_HOST')) { - URL::forceRootUrl("https://{$forwardedHost}"); - } - } - Event::listen( SocialiteWasCalled::class, MicrosoftExtendSocialite::class diff --git a/composer.lock b/composer.lock index ac7cdb8..f8facd5 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "d8109d7765ee6f6846cd672d742ad3e6", + "content-hash": "80d788c07c363103e99cadbacd821b17", "packages": [ { "name": "brick/math", @@ -4012,6 +4012,65 @@ }, "time": "2026-03-26T00:32:34+00:00" }, + { + "name": "spatie/icalendar-generator", + "version": "3.3.0", + "source": { + "type": "git", + "url": "https://github.com/spatie/icalendar-generator.git", + "reference": "6817d3f405563eca1afc9ea870077a898e11bc27" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/spatie/icalendar-generator/zipball/6817d3f405563eca1afc9ea870077a898e11bc27", + "reference": "6817d3f405563eca1afc9ea870077a898e11bc27", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.2" + }, + "require-dev": { + "ext-json": "*", + "larapack/dd": "^1.1", + "nesbot/carbon": "^3.5", + "pestphp/pest": "^2.34 || ^3.0 || ^4.0", + "phpstan/phpstan": "^2.0", + "spatie/pest-plugin-snapshots": "^2.1" + }, + "type": "library", + "autoload": { + "psr-4": { + "Spatie\\IcalendarGenerator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ruben Van Assche", + "email": "ruben@spatie.be", + "homepage": "https://spatie.be", + "role": "Developer" + } + ], + "description": "Build calendars in the iCalendar format", + "homepage": "https://github.com/spatie/icalendar-generator", + "keywords": [ + "calendar", + "iCalendar", + "ical", + "ics", + "spatie" + ], + "support": { + "issues": "https://github.com/spatie/icalendar-generator/issues", + "source": "https://github.com/spatie/icalendar-generator/tree/3.3.0" + }, + "time": "2026-03-18T09:51:41+00:00" + }, { "name": "symfony/clock", "version": "v8.1.0", diff --git a/config/app.php b/config/app.php index 423eed5..28be821 100644 --- a/config/app.php +++ b/config/app.php @@ -65,7 +65,7 @@ | */ - 'timezone' => 'UTC', + 'timezone' => env('APP_TIMEZONE', 'UTC'), /* |--------------------------------------------------------------------------