This package is a wrapper of Swagger-php and swagger-ui adapted to work with Laravel.The actual Swagger spec is beyond the scope of this package. All L5-Swagger does is package up swagger-php and swagger-ui in a Laravel-friendly fashion, and tries to make it easy to serve. For info on how to use swagger-php look here. For good examples of swagger-php in action look here.
1、根据Laravel版本选择Swagger的版,详情:https://github.com/DarkaOnLine/L5-Swagger/wiki/Installation-&-Configuration 如Laravel6执行:composer require "darkaonline/l5-swagger:6.*" 2、执行:php artisan vendor:publish --prov
第一步 swagger的部署 https://segmentfault.com/a/1190000014059501 第二步 swagger的简单使用 https://segmentfault.com/a/1190000014077771