Files
ChatbotAGGLO/app/Providers/AppServiceProvider.php
T

29 lines
518 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
{
if ($this->app->environment('production') || env('FORCE_HTTPS', false)) {
URL::forceScheme('https');
}
}
}