Files
eatvio-infra/app/Providers/AppServiceProvider.php
2023-12-18 14:51:58 +03:00

31 lines
536 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');
}
}
}