Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Ariandail's avatar

Change assets directory on a host

I want to change my assets directory because images are not visible on a remote server. Locally it's totally fine: assets('obrazki/ikonki/mbank.png') makes but on a host server it should be . How redirect assets to public folder on hosting?

0 likes
1 reply
mtmfahath's avatar

if it is laravel blade use like this

<img src="{{ asset('obrazki/iknonki/mbank.png')  }}"/>

Please or to participate in this conversation.