forked from eatvio/eatvio-infra
31 lines
536 B
PHP
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');
|
|
}
|
|
}
|
|
}
|