The Repository pattern. Repositories are classes or components that encapsulate the logic required to access data sources. They centralize common data access functionality, providing better maintainability and decoupling the infrastructure or technology used to access databases from the domain model layer.
Installation:
1. Clone the repo or download it.
2. Run command composer install
3. Rename or copy .env.example file to .env , change db credintials
4. Run command php artisan migrate --seed
5. Run command php artisan serve
6. Check end points for example http://127.0.0.1:8000/api/orders.