Most factory states just flip a flag, but they can also accept arguments. That opens up some useful patterns, like deriving test data from another model. masteringlaravel.io/daily/2026-0...
masteringlaravel.ioFactory states can accept arguments | Mastering LaravelLess boilerplate when building related test data
0 reposts1 like