lolispace-applications/app/Providers/AppServiceProvider.php
2025-05-02 14:20:27 +02:00

29 lines
560 B
PHP

<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Facades\URL;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
*/
public function boot(): void
{
// Force HTTPS for all URLs generated by Laravel (including Livewire)
if (env('APP_ENV') === 'production') {
URL::forceScheme('https');
}
}
}