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

jorgb's avatar
Level 1

Laravel Sail in docker does not reflect changes

Hi,

I'm running a default setup of Laravel sail and Docker on my M2 MacBook. For some reason controller and route changes are not reflected in real time. They only appear when I stop and start the docker container again.

Does anyone have an idea or solution to this issue?

0 likes
5 replies
RayC's avatar

I had this issue and running php artisan cache:clear worked for me. or try running composer dumpauto

Mojtaba_k's avatar

@jorgb Hi, Have you found the solution? I''m having this problem, and it's driving me bonkers.

jorgb's avatar
Level 1

@Mojtaba_k still no solution. I switched back to homestead instead of sail.

hosnybenme's avatar

If you're using Docker, which for sure is the case.

Please make sure that "File implementation" is on "VirtioFS". This fixed the issue for me.

Squire's avatar

@hosnybenme jeez, this was driving me crazy. I was about to go back to Valet. Thanks. Moving to VirtioFS solved it.

Please or to participate in this conversation.