Answers for "laravel force to https"

PHP
2

laravel ever over https

//Place this in the AppServiceProvider in the boot() method
if($this->app->environment('production')) {
    URL::forceScheme('https');
}
Posted by: Guest on January-05-2022
0

redrectnh to https n laravel

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Posted by: Guest on February-16-2021

Browse Popular Code Answers by Language