Files
star-erp/app/Providers/AppServiceProvider.php

28 lines
506 B
PHP
Raw Normal View History

2025-12-30 15:03:19 +08:00
<?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
{
2026-01-06 13:21:31 +08:00
// 如果是在正式環境,強制轉為 https
if (config('app.env') === 'production') {
URL::forceScheme('https');
}
2025-12-30 15:03:19 +08:00
}
}