Laravel-apidoc-generator: commands not found("api") namespace

Created on 26 Sep 2017  路  10Comments  路  Source: mpociot/laravel-apidoc-generator

Hello there!

i am using laravel 5.4.* and laravel-apidoc-generator 2.0.0,

while am generating docs using artisan, and also add the class in providers
Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class,
it shows the following error.,

[Symfony\Component\Console\Exception\CommandNotFoundException]
There are no commands defined in the "api" namespace.
Did you mean this?
app

Please let me know what i am missing?

Most helpful comment

Put in your AppServiceProvider.php

$this->app->register(\Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class);

this will work

All 10 comments

getting the same issue here!! but I'm trying to uninstall it

I get the same issue

I reinstalled it and it worked fine. Think I added it to the wrong section of app.php initially

Put in your AppServiceProvider.php

$this->app->register(\Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class);

this will work

Works fine! Tnx @luanrfsilva

Thanks @luanrfsilva , this should be added on the docs or some updates.

php artisan config:cache fixed my issue!

@luanrfsilva Thanks

php artisan config:cache fixed my issue!

Thanks

how to resolve this lumen?

Was this page helpful?
0 / 5 - 0 ratings