Laravel 5.6模块问题

时间:2018-07-12 11:24:41

标签: laravel module

我已经在本地主机上安装nwidart/laravel-modules以便在模块中工作。但是,当我使用php artisan module:make <module-name>这个命令作为make模块时,我得到There are no commands defined in the "module" namespace这个错误。添加以下内容之后

$app->configure('modules');
$app->register(\Nwidart\Modules\LumenModulesServiceProvider::class);

bootstrap/app.php文件中的代码我得到Fatal error: Call to undefined method Illuminate\Foundation\Application::configure()这个错误。

0 个答案:

没有答案