Documentation generation for Swagger without OpenAPI
Note: In order for the composer to be able to install an unstable package, in the option "minimum-stability" of the file "composer.json" the value must be "dev".
- Execute the command:
composer require andrey-helldar/laravel-swagger:dev-master --dev
- Use the
swagger:generate
command to generate documentation.
- Execute the command:
composer require andrey-helldar/laravel-swagger:dev-master --dev
-
Copy the configuration file to the config folder.
-
Register the configuration file in
bootstrap/app.php
:
$app->configure('laravel-swagger');
- Register the service provider in
bootstrap/app.php
:
$app->register(Helldar\LaravelSwagger\ServiceProvider::class);
- Use the
swagger:generate
command to generate documentation.