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

Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge. Glimpse streamlines Laravel development by seamlessly deploying GitHub pull requests to preview environments with the help of Laravel Forge.
Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Shirts painstakingly handcrafted by under-caffeinated developers. Shirts painstakingly handcrafted by under-caffeinated developers.
Community Partners