fix: force https scheme in production

This commit is contained in:
zhadaarsita 2025-09-20 11:42:52 +07:00
parent c97e323ea7
commit 0e0250fec3
1 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,7 @@
namespace App\Providers; namespace App\Providers;
use Illuminate\Support\Facades\URL;
use Illuminate\Support\ServiceProvider; use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider class AppServiceProvider extends ServiceProvider
@ -18,7 +19,9 @@ public function register(): void
* Bootstrap any application services. * Bootstrap any application services.
*/ */
public function boot(): void public function boot(): void
{ {
// if ($this->app->environment('production')) {
URL::forceScheme('https');
} }
} }
}