Closed ihorsamusenko closed 8 years ago
Yes. That is because your're using the raw faker there, so it's generating them once when the definition is defined.
You need Faker::lastName()
. That is not the same as having called instance
first.
Our version wraps things in closures they get lazy executed later on for each generation.
How about adding some @method
annotations to League\FactoryMuffin\Faker\Facade
? I can do that.
I use this code
Each time I create new User there are the same values for names and email.