Files
theme-park-app/app/Providers/AppServiceProvider.php
2024-08-21 11:36:27 +02:00

28 lines
471 B
PHP
Executable File

<?php
namespace App\Providers;
use Illuminate\Support\Facades\URL;
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(app()->isProduction()) {
URL::forceScheme('https');
}
}
}