Installing dependent package from module
Created 7 years ago by lckamal

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": "1.0.x@dev",
        "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  —  7 years 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.