This project demonstrates how to build a Laravel API with API documentation using Scribe.
- PHP >= 8.1
- Composer
Assuming you have Linux based terminal and PHP 8.1 installed
- Clone the repository
git clone
- Install dependencies
composer install
- Create a copy of the .env file
cp .env.example .env
- Generate an app encryption key
php artisan key:generate
- Create an Sqlite database for the application
touch database/database.sqlite
- Run the database migrations
php artisan migrate
- Run the database seeders
php artisan db:seed
- Run the application
php artisan serve
The API documentation is generated using Scribe. To generate the documentation, run the following command:
php artisan scribe:generate
The documentation will be available at /docs/index.html
in your browser.
Project uses PestPHP for testing.
To run the tests, run the following command:
composer test
If you find this project useful, please consider supporting by giving a star ⭐️ and sharing it with your friends on Social Media.
If you find this project useful, please consider supporting us! 🚀🌟
💫 Give us a star on GitHub: ⭐️ Laravel API Docs
🐦 Share it with your friends on Social Media: Twitter
Your support is greatly appreciated! Thank you for being a part of this journey. 🙏
The MIT License (MIT).