Time travel after each Laravel Factory
If you ever tested an endpoint returning a collection of data and, for example, by default, you sort them by created_at, you may have been struggling to check the correct order of the result. If you either created multiple data with User::factory()->...
theraloss.com2 min read