// app/Providers/AppServiceProvider.php URL::forceScheme('https');
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]