If you are facing any issue related with Mixed Content of your laravel project, here could one of the possible solution that recently I faced.
In my case, the entire stylesheet was broken and I got the following errors in the console-
Mixed content: load all resources via HTTPS to improve the security of your site.
I was using
asset() for declaring styles and scripts. The actual reason is the
asset() won't handle https automatically. That's why it was happening.
.env file, I set the following lines-
Here, I mainly added
ASSET_URL that actually took the
APP_URL data, that is following the
Hope it will work for you also.
Hello. I’m Thouhedul Islam. Some people also know me as Suchi.
At night I love to solve problems for the community. I love to be active at Laracasts.