fix: force HTTPS scheme in all environments #3

Merged
kingjaypee12 merged 1 commits from fix/error-on-production into main 2026-02-10 21:42:11 +00:00
Showing only changes of commit ee65bdfb31 - Show all commits

View File

@@ -23,9 +23,7 @@ class AppServiceProvider extends ServiceProvider
*/ */
public function boot(): void public function boot(): void
{ {
if ($this->app->environment('production')) { URL::forceScheme('https');
URL::forceScheme('https');
}
Gate::before(function ($user, $ability) { Gate::before(function ($user, $ability) {
return $user->hasRole('super_admin') ? true : null; return $user->hasRole('super_admin') ? true : null;