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

sun_down's avatar

Laravel routes messed up from mac env to linux env.

So i have a macbook pro laptop and a linux vm running in my desktop, and i had been doing all my work in this app entirely on my mac using valet in which everything works, but i tried cloning my repo into my linux desktop for comfort and screen size. When i did this all my routes turned out to be messed up and not working properly anymore, thought changing the folder in which i had my posts views from a capital P to a lowercase p would fix everything since mac is not case sensitive but linux is, this only fixed one of my issues but my delete button and edit button with their views do not work anymore and trow errors, any way to kinda fix this without going over every single error and changing code that worked in one OS to work on another? should i just finish it using the mac env i got ? what about later on while maintaining it and trying to fix bugs or issues? maybe updating certain parts of the application once its deployed? how about once i deploy to a linux server, will it be as messed up there as in my linux box? should i move everything to vagrant or homestead and fix it in there ? so it works everywhere? just need some opinions or feedback from someone who has had this happen to them before. thank you.

0 likes
2 replies
MaverickChan's avatar

linux is case sensitive system , naming your directories should be very carefully.

Please or to participate in this conversation.