I was trying to install this package on Laravel 5.5.4 and on Laravel 5.6. But right after executing the $ composer require mpociot/laravel-apidoc-generator command the api commands haven't appeared in the console.
As it turned out the problem was that Mpociot\ApiDoc\ApiDocGeneratorServiceProvider::class wasn't added to config/app.php file automatically. After I have added it manually - everything started working!
In the documentation it is said that I should add this manually only if my version of Laravel < (less than) 5.5. So, please update the documentation or fix the current behavior. Thanks!
I have the strange issue that it's not working at all, even when adding it to app.php, or the AppServiceProvider, and cleaning the config cache afterwards.
The reason is that _composer.json_ was not updated in the 2.0.0 release, so auto-discovery is not included. If you require the _dev-master_ version, it will work:
composer require mpociot/laravel-apidoc-generator:dev-master
Hope this will be merged soon in the next release.
New release coming soon!
Most helpful comment
The reason is that _composer.json_ was not updated in the 2.0.0 release, so auto-discovery is not included. If you require the _dev-master_ version, it will work:
composer require mpociot/laravel-apidoc-generator:dev-masterHope this will be merged soon in the next release.