·
9 min
Using Laravel Model Factories to Generate Test Data
A practical guide to Laravel model factories: states, relationships, sequences, and using them in tests and seeders to generate realistic data.
3 Articles
A practical guide to Laravel model factories: states, relationships, sequences, and using them in tests and seeders to generate realistic data.
A practical guide to Laravel observers vs events: when to use each, why observers skip bulk updates, and how to avoid the classic gotchas.
Fix the Eloquent N+1 problem for good: why lazy loading in a loop kills performance, how to detect it, and eager loading patterns that scale.