DEV Community

Discussion on: Laravel model factories with relation sharing foreign keys

Collapse
 
franksierra profile image
Frank Sierra

Nice I've never thought you could pass a function as the value of an element in the factories

Collapse
 
luisgmoreno profile image
Luigui Moreno

Yeah, it saves a lot of repetition or helper functions