Laravel-modules: There are no commands defined in the "module" namespace

Created on 28 May 2017  路  3Comments  路  Source: nWidart/laravel-modules

Hello,

When I'm trying to make a module [ php artisan module:make Blog ] in Laravel 5.4.23 I'm getting the following error-

[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "module" namespace.

Most helpful comment

add the following in app.php under providers :

'providers' => [
........
Nwidart\Modules\LaravelModulesServiceProvider::class
]

All 3 comments

Hi,

That means you didn't register the service provider of this package in your config/app.php file.

hello bro,
php artisan module:make Blog not work please select your command line:
->php artisan make:module Blog (then work)

add the following in app.php under providers :

'providers' => [
........
Nwidart\Modules\LaravelModulesServiceProvider::class
]

Was this page helpful?
0 / 5 - 0 ratings

Related issues

githubmarau picture githubmarau  路  29Comments

oleaass picture oleaass  路  11Comments

kamov picture kamov  路  10Comments

Warchiefs picture Warchiefs  路  12Comments

esipavicius picture esipavicius  路  13Comments