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?
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:cachefixed my issue!
Thanks
how to resolve this lumen?
Most helpful comment
Put in your AppServiceProvider.php
$this->app->register(\Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class);
this will work