Support the ongoing development of Laravel.io →
posted 2 years ago
Laravel
Last updated by @jozoe 2 years ago.
0

This is because you are using relative URLs for your assets. You should use Laravel's helper asset to load your assets.

<link rel="stylesheet" type="text/css" href="{{ asset('css/style.css') }}">

In this example it loads style.css from public/css/ folder.

How do you load your assets?

Last updated by @geowrgetudor 2 years ago.

jozoe liked this reply

1

thank you for your answer, I placed secure_asset instead of asset for links in https instead of http and I had placed a line ASSET_URL=public in the .env file that I deleted and everything works normally now

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.