Compare commits

...

2 Commits

Author SHA1 Message Date
Bayu Lukman Yusuf 30ea286214 Merge branch 'feature-product' into development
WMS API/ECOMMERCE/pipeline/head This commit looks good Details
2026-02-23 08:59:38 +07:00
Bayu Lukman Yusuf a733b90d46 add https 2026-02-23 08:58:46 +07:00
1 changed files with 9 additions and 0 deletions

View File

@ -4,6 +4,8 @@ namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider
{
/**
@ -20,5 +22,12 @@ class AppServiceProvider extends ServiceProvider
public function boot(): void
{
//
if (
request()->isSecure() ||
request()->server('HTTP_X_FORWARDED_PROTO') === 'https'
) {
URL::forceScheme('https');
}
}
}