In this lesson, we will check another tool for generating API documentation called Laravel Swagger using the DarkaOnLine/L5-Swagger package.
Swagger is an open standard for APIs, not specifically for Laravel or PHP. It is general for all APIs. Now, swagger is called OpenAPI, but you can find it in both names on the internet.
This package works similarly to Scribe by adding docblocks and running an artisan command to generate documentation.
You can install Swagger via Composer.
composer require "darkaonline/l5-swagger"
And publish config with views if needed.
php artisan vendor:publish --provider "L5Swagger\L5SwaggerServiceProvider"
You can specify global configuration in the...