In this repository, we discuss an example of using swagger in Laravel 11. This zippository is a simple project with Laravel 11, which is a management panel along with a simple blog web service with CRUD operations.
You can see an example of the use of anodes in /example/*
First enter the following directory
example/laravel-admin-blog-api1
Then install dependencies using Composer
$ composer installIf necessary, you can upgrade the dependencies
$ composer upgradeDo the initial configurations of the project
create .env file from .env.example
Then run the following command
$ php artisan key:generateThen configure the database in .env file and create tables and database
$ php artisan migrateRun the local server with the following command
$ php artisan serveUse the following command to update the Swagger document
php artisan l5-swagger:genaretUse the following command to update the Scibe document
php artisan scribe:genaret