Files
BloomFeed-RSS/app/Providers/AppServiceProvider.php
T
2026-07-03 16:27:34 +02:00

28 lines
506 B
PHP

<?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 (str_starts_with((string) config('app.url'), 'https://')) {
URL::forceScheme('https');
}
}
}