·
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.
4 Articles
A practical guide to Laravel model factories: states, relationships, sequences, and using them in tests and seeders to generate realistic data.
Six database design mistakes that quietly wreck performance and data integrity, plus the concrete SQL fix for each one.
SQLSTATE[HY000] in Laravel isn't one bug. Learn to read the driver code, then fix 2002, 1045, 1049, 2006 and 1364 fast.
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.