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

carsonevans's avatar

How do you handle case sensitivy differences between OSX and Forge?

I was getting an error in Production (forge) that doesn't happen in my development (OSX) environment. "Class 'Laravel\Nova\Fields\TextArea' not found". I noticed that it should be "Textarea" instead of "TextArea", but this works fine locally. I am assuming this has to do with OSX being case insensitive while Forge/Linux is case sensitive.

Is the first thing you do when you get a new mac to reformat it with a case sensitive volume? Do you keep an extra volume for development that is case sensitive? Is there some other more reasonable magic trick I'm not thinking of?

0 likes
2 replies
ohffs's avatar

By co-incidence - it's one of the nice side-effects to running your tests inside a Docker container. You can do it locally or via a service like Gitlab or various others. It's also nice to be able to match the OS/DB/etc from your server to catch other things like mysql/sqlite differences.

Cronix's avatar
Cronix
Best Answer
Level 67

I just use homestead for development. It's basically the same disk image Forge uses in their servers so there's never any surprise.

Please or to participate in this conversation.