Level 1
After adding an entry to the compose file using e.g. in folder your module
composer require package-name
Use the command in the main application in folder global application
php artisan module:update name-your-module
1 like
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello, In Laravel 6/nwidart/laravel-modules 7 app I see file composer.json in root of my module with lines :
{
"name": "nwidart/pages",
"description": "",
"authors": [
{
"name": "Nicolas Widart",
"email": "[email protected]"
}
],
"extra": {
"laravel": {
"providers": [],
"aliases": {
}
}
},
"autoload": {
"psr-4": {
"Modules\Pages\": ""
}
}
}
I suppose that if I want to add some external package into my module(not the whole app) I need to edit this file and run module commands? How have I to edit it and which commands to use ?
Thanks!
Please or to participate in this conversation.