ldc-supportweb/app/Providers/AppServiceProvider.php
Vincent BRIDIER 6de09e3499 - Fix HTTPS
2020-11-24 14:03:47 +01:00

30 lines
486 B
PHP

<?php
namespace App\Providers;
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()
{
if(config('app.env') !== 'local') {
\URL::forceScheme('https');
}
}
}