Installing dependent package from module

lckamal - 2 months ago

I am making a module where some packages are dependent and I have added them in my [module-dir]/composer.json like this: ... "require": { "tymon/jwt-auth": "^0.5.9", "dingo/api": "[email protected]", "barryvdh/laravel-cors": "^0.8.2" } but while I run php artisan module:install [module] It doesn’t install these packages. Any idea how to handle this?

ryanthompson - 2 months ago

You need to add your addon to your composer.json file in root and run an update. Just like adding one of our PRO addons you just need to include it the repositories section too as a VCS.