DEV Community

Seong Bae
Seong Bae

Posted on • Edited on

Composer use local package

When you are working on Laravel package development, I don't know about other developers but I found it easier to work off of local copy on my computer. This allows making any changes to packages and you can see the changes instantly.

"repositories": [
    {
        "type": "path",
        "url": "/full/or/relative/path/to/development/package"
    }
]
Enter fullscreen mode Exit fullscreen mode
composer require "vendorname/packagename @dev"
Enter fullscreen mode Exit fullscreen mode

Do you develop Laravel packages? What's your best practices?

Top comments (0)