for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace AlexWells\ApiDocsGenerator;
use Illuminate\Support\ServiceProvider;
use AlexWells\ApiDocsGenerator\Commands\GenerateDocumentation;
class PackageServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application events.
*
* @return void
*/
public function boot()
$this->loadViewsFrom(__DIR__ . '/../../resources/views/', 'api-docs');
$this->publishes([
__DIR__ . '/../../resources/views' => resource_path('views/vendor/api-docs')
], 'views');
__DIR__ . './../resources/assets' => resource_path('assets/vendor/api-docs')
], 'assets');
}
* Register API documentation generator commands.
public function register()
$this->commands([
GenerateDocumentation::class
]);