I want my site to work via https
so I setup .htaccess
correctly but now when I open site, all assets loaded via
asset('/assets/css/style.css')
Are loaded via http
. In config/app.php I have URL set with https, but both asset
and Request::root()
return http
How do I solve this?
I know asset()
can accept second parameter true
and return https
but it's not really a solution to change that everywhere. Especially if I have to go back to http
at some point