If you've read any of my previous blog posts, you'll know that I like contributing to open-source projects whenever I get a chance to. So this means that I need to be able to work on packages inside my project without directly updating any vendor files (in my project's vendor directory).

To do this, we can add the following block to our project's composer.json file: "repositories": {"local": {"type": "path", "url": "./packages/*", "options": {"symlink": true }} }

This command will remove the field with the short-url key from the repositories field in the composer.json file.

Hopefully, this post should have given you a quick overview you how you can use and edit local Composer packages in your Laravel projects.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners