- The example shows how to create the pagination API with Laravel and using MySQL as a database.
- The article of this repo https://blog.stackpuz.com/create-a-pagination-api-with-laravel/
- To find more resources, please visit https://stackpuz.com
- Composer
- PHP 8.2
- MySQL
- Clone this repository
git clone https://github.com/stackpuz/Example-Pagination-Laravel-11
- Install the dependencies
composer install
- Create a new database and run /database.sql script to create tables and import data.
- Edit the database configuration in /.env file.
- Run project
php artisan serve
- Navigate to http://localhost:8000