Hixel/app/Providers/AppServiceProvider.php
2022-03-27 18:03:51 -03:00

31 lines
532 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(env('FORCE_HTTPS',false)) { // Default value should be false for local server
url()->forceScheme('https');
}
}
}