I create my own package located in the root folder named /ECommerce.
This directory contains composer.json and my package code.
When I want to add a new package to ECommerce/composer.json, which is necessary for the package to work, after calling the $ composer update/install command, that package is not installed.
If I add the desired package to the root composer.json it is installed.
Is there any possibility to merge these two composer.json files or do I have to copy composer.json from the root folder to the package folder at the end of the project
Example:
Structure: / - app - Ecommerce - ... - composer.json - resources - vendor - composer.json - .... I add composer require nwidart/laravel-modules in Ecommerce and that is not installed.
If I add in root composer.json, then it becomes installed.
autoload PSR-4composer.jsonfile? Why don't you install this package with composer, and declare it in the project's composer.json file?