Home > Mobile >  I have this error in database seeder and no idea how to solve it?
I have this error in database seeder and no idea how to solve it?

Time:05-26

I'M ATTACHING THE IMAGES OF SEEDER AND ERROR

THIS IS MY SEEDER FILE AND BELOW THIS I'M HAVING THIS ERROR.

enter image description here

CodePudding user response:

You need to use pass the number of the created models with count:

User::factory()->count($userQuantity)->create();

and the same is true for the rest of the factories

  • Related