Skip to main content
ladumor/laravel-swagger

Laravel Swagger

Generates the Swagger file for your application and publishes the documentation view, so your API docs are one route away.

License
MIT
Language
PHP
Last push
November 8, 2021
GitHub stars
23
Forks
1
Composer installs
7.6K
composer require ladumor/laravel-swagger

Installation

Install the package by the following command,

bash
composer require ladumor/laravel-swagger

Add Provider

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

php
Ladumor\LaravelSwagger\LaravelSwaggerServiceProvider::class,

Add Facade

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

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

Generate Swagger file and publish the Assets. like, view

Run the following command to publish config file,

bash
php artisan laravel-swagger:generate

Add route in web.php file

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

Other Packages

Learn Laravel Packages here

Watch on YouTube (opens in a new tab)

License

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

This page shows the project README and refreshes about once an hour. Read it on GitHub (opens in a new tab).

More open source

All projects →
  • ladumor/laravel-pwa

    Laravel PWA

    Generates the manifest, service worker, icons and splash screens for a Laravel site, then adds offline form sync and an install prompt you control.

    272
    Stars
    48
    Forks
    397.2K
    Installs
    composer require ladumor/laravel-pwa
  • ladumor/one-signal

    Laravel One Signal

    Send push, email and SMS notifications from Laravel, and manage users, aliases and subscriptions, through one facade instead of hand-written HTTP calls.

    122
    Stars
    24
    Forks
    375.3K
    Installs
    composer require ladumor/one-signal