namespace App\Providers;
use Illuminate\Routing\UrlGenerator;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @param UrlGenerator $url
* @return void
/
public function boot(UrlGenerator $url)
{
/*
* Enable https
*/
if (env('ENABLE_HTTPS', false) || $this->app->environment('production')) {
$url->forceScheme('https');
}
}
}