Here we have incrementally applied some techniques covered by Jeffrey Way in his Incremental API series.
The following jargons were covered:
- Faker
- Factory
- PHPUnit
- Paginated APIs
- DB Seeding
- Class Transformers
- Unit Testing in separate SQLite DB in memory
- ModelNotFoundException handling
Please search through the commit history to find the one related to your need and dig into it.