Files
star-cloud/app/Providers/AppServiceProvider.php
sky121113 21e064ff91
All checks were successful
star-cloud-deploy-demo / deploy-demo (push) Successful in 44s
[FIX] 強制 HTTPS 與信任代理以修正 Mixed Content 問題,並加入 CI/CD 自動同步 main 邏輯
2026-03-06 17:16:00 +08:00

27 lines
465 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
if (!$this->app->isLocal()) {
\Illuminate\Support\Facades\URL::forceScheme('https');
}
}
}