Swagger UI for Lumen 5
Martin Abelson Sahlen style of swagger-ui implemented.
composer require "jessekoska/swagger-ui-lumen dev-master"- Open your
bootstrap/app.phpfile and:
uncomment this line (around line 26) in Create The Application section:
$app->withFacades();add this line before Register Container Bindings section:
$app->configure('swagger-ui-lumen');add this line in Register Service Providers section:
$app->register(SwaggerUILumen\ServiceProvider::class);- Run
php artisan swagger-ui-lumen:publish-configto publish configs (config/swagger-ui-lumen.php) - Make configuration changes if needed
- Run
php artisan swagger-ui-lumen:publishto publish