ladumor/laravel-swagger

this package used for the setup swagger docs for APIs.

1.0.0 2021-11-06 13:51 UTC

This package is auto-updated.

Last update: 2024-04-08 18:22:30 UTC


README

Latest Stable Version Daily Downloads Monthly Downloads Total Downloads License PHP Version Require

Laravel Swagger

Installation

Install the package by the following command,

composer require ladumor/laravel-swagger

Add Provider

Add the provider to your config/app.php into provider section if using lower version of laravel,

Ladumor\LaravelSwagger\LaravelSwaggerServiceProvider::class,

Add Facade

Add the Facade to your config/app.php into aliases section,

'LaravelSwagger' => \Ladumor\LaravelSwagger\LaravelSwaggerServiceProvider::class,

Generate Swagger file and publish the Assets. like, view

Run the following command to publish config file,

php artisan laravel-swagger:generate

Add route in web.php file

Route::get('/swagger-docs', function () {
    return view('swagger.index');
});

Other Packages

Learn Laravel Packages here

68747470733a2f2f696d672e796f75747562652e636f6d2f76692f794d7473674273714451732f302e6a7067

License

The MIT License (MIT). Please see License File for more information