Files
eatvio-infra/app/Providers/AppServiceProvider.php
Anatoliy Poloz 92a54106ef analysators added
2023-12-18 14:36:32 +03:00

33 lines
558 B
PHP

<?php
namespace App\Providers;
use Illuminate\Contracts\Routing\UrlGenerator;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot(UrlGenerator $url)
{
if (env('ENFORCE_SSL', false)) {
$url->forceScheme('https');
}
//
}
}