Try setting this this in your env file
ASSET_URL=https://neko-finder.herokuapp.com
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Laravel (and webdev in general) newbie here. Finally managed to kind of deploy my website, but really not sure if follows any kind of best practices. And I'm getting mixed content error.
I'd appreciate it if you could just point me in the right direction for my case.
The error started appearing once I began using asset() helper on my website to get the content to display properly.
So I Googled it 1 2 3 and not sure if any of these solutions are up-to-date and fit my heroku case.
If I understand it correctly, this error happens because asset() helper fetches APP_URL that is not https://. Thing is, in my heroku dashboard I've set the APP_URL variable to be my https:// root.
Should I just change it to secure_asset() helper or should I do something about my app.php by changing the line below
'url' => env('APP_URL', 'http://localhost'),
to
'url' => env('APP_URL', 'https://localhost'),
Sorry if my question is too low-level, but I really want to understand what's going on :) Any advice would be much appreciated. I also ran the commands described in Laradocs->Deployment prior to pushing my app.
Try setting this this in your env file
ASSET_URL=https://neko-finder.herokuapp.com
Please or to participate in this conversation.