byos_laravel/app/Providers/AppServiceProvider.php
2025-06-17 21:30:59 +02:00

27 lines
474 B
PHP

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