Just a quick reminder to my future self: if you ever will find yourself stuck again, spending countless hours trying to understand why Carbon Fields doesn’t work inside your brand new WordPress plugin you’re developing locally using Local environment, Composer AND a symlink to a separate plugin folder somewhere on you computer.
DELETE THAT SYMLINK
For some reason, Local + Carbon Fields + Composer + Symlink don’t really get along very well together so you’re probably better off just having a regular gitified plugin folder inside Local container. And no fancy symlinks, please.
Btw, problem persists on all environments, be it Ubuntu or macOS.
BUT.
For all other setups symlinks can be really useful so I’ll leave this snippet here, showing how to create one. It allows you to work on anything in a separate folder and test it easily on a local environment from a different place.
ln -s /Users/pavel/Documents/Plugins/my-plugin/ /Users/pavel/Local\ Sites/website.local/app/public/wp-content/plugins/my-plugin