Issue
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": "n.widart@gmail.com"
}
],
"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?
Solution
You can use regular composer commands in the module directory. Just cd into it then use composer require package-name.
Answered By - Joundill
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.