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

ichbinabe's avatar

Laravel Sail PHP code changes locally

None of the PHP application code changes that I make locally are reflected within the docker container.

I've got hot-reloading setup so that javascript code changes made locally reflect within the docker container.

Am I not supposed to change the code on my local (HOST) machine? Am i supposed to make changes to the deployed application within the docker container? I can't imagine that last possibility being the case.

0 likes
1 reply
eterlinden's avatar

Hi @ichbinabe

First of all, if 'You are Abe' then "I am Ahab' ;)

Yes, you should make your changes locally and yes, they should show up in your docker container. Chances are there is something wrong in your docker-compose.json (which is called when you do a 'sail up'), when it comes to mounting your local files into the container's volumes declaration.

If you can show me your docker-compose.json file, I'm sure that I can fix your problems.

Cheers

Please or to participate in this conversation.