I have an application made on laravel 5.2. It worked fine on HTTP.
I used the asset function to generate the full url instead of using a relative, like
<link rel="stylesheet" type="text/css" href="{{ asset('/css/bootstrap.min.css') }}">
According to the laravel documentation here , the asset method automatically determines the request protocol and creates the URL accordingly.
Now the application does not work on HTTPS, I can use secure_asset for HTTPS URLs, but then it will stop working on HTTP and localhost .
I know that there is something that I am missing and itβs not easy to just switch from HTTP to HTTPS with laravel
PS - Cloudflare used to serve HTTPS requests.
Cybersupernova
source share