for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mpociot\ApiDoc;
use Illuminate\Support\ServiceProvider;
use Mpociot\ApiDoc\Commands\GenerateDocumentation;
use Mpociot\ApiDoc\Commands\UpdateDocumentation;
class ApiDocGeneratorServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
$this->loadViewsFrom(__DIR__.'/../../resources/views/', 'apidoc');
}
* Register the API doc commands
public function register()
$this->app['apidoc.generate'] = $this->app->share(function () {
return new GenerateDocumentation();
});
$this->app['apidoc.update'] = $this->app->share(function () {
return new UpdateDocumentation();
$this->commands([
'apidoc.generate',
'apidoc.update',
]);