DEV Community

Discussion on: Laravel model factories with relation sharing foreign keys

franksierra profile image
Frank Sierra

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

luisgmoreno profile image
Luigui Moreno Author

Yeah, it saves a lot of repetition or helper functions