Enable https on laravel url scheme

@Rayhan

1/1. AppServiceProvider.php

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