Files
theme-park-app/app/Providers/AppServiceProvider.php

28 lines
471 B
PHP
Raw Permalink Normal View History

2024-08-20 21:08:23 +02:00
<?php
namespace App\Providers;
2024-08-21 11:36:27 +02:00
use Illuminate\Support\Facades\URL;
2024-08-20 21:08:23 +02:00
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
2024-08-21 11:36:27 +02:00
if(app()->isProduction()) {
URL::forceScheme('https');
}
2024-08-20 21:08:23 +02:00
}
}