Force HTTPS for all the URLs in Laravel
Here’s how you can do it using the URL::forceHttps()
method.
Set this in your app’s boot()
method of the service provider.
use Illuminate\Support\Facades\URL;
URL::forceHttps(app()->isProduction());