Files
laravel-coolify/app/Providers/AppServiceProvider.php
Chimezie Enyinnaya 886f5bcae9 force https
2024-09-09 08:30:13 +01:00

28 lines
489 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 ($this->app->environment('production')) {
URL::forceScheme('https');
};
}
}