@alenn -- did you ever find a workable solution for this?
To everyone else, sorry in advance for bumping this 3 month old thread... but it was both the most recent and most relevant. I have been searching for quite a while now and haven't yet found a 'good' solution to this problem. I understand that when the package is defined in an app's composer.json require section, composer will automatically autoload that package's dependencies... but what does everyone do while they are developing their packages? Here are some proposed solutions I've seen, but I'd love to hear how other people are doing this too!
- Define the package as a local repository in your
composer.jsonfile -- this could work... but you'll have to composer update every time you want to reflect package changes. Seems cumbersome. - Add a
require()statement that requires the packagevendor/autoload.phpfile. Not really a solution because this won't exist when the package is actually installed via composer. - Drop in the package's git repo in the main app's
vendor/myvendor/packagenamefolder. Seems pretty hacky and just wrong! Also don't want to replace development files if i do a composer update in the root app
How does everyone handle the "develop a package while using it in a 'root' laravel app" problem in L5?