LAR_Maintenance/app/Providers/AppServiceProvider.php

27 lines
443 B
PHP
Raw Permalink Normal View History

2024-07-30 10:44:45 +02: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
{
2024-07-30 18:13:21 +02:00
if (config('app.env') != 'local'){
\URL::forceScheme('https');
}
2024-07-30 10:44:45 +02:00
}
}