The PersonFactory is now using factory states to decide if male, female or

company.
This commit is contained in:
Lukas Halbritter
2018-09-12 10:23:09 +02:00
parent da2dfc1701
commit 6ff2da68ed
2 changed files with 25 additions and 36 deletions
@@ -13,7 +13,9 @@ class TestPeopleTableSeeder extends Seeder
public function run()
{
// Create people
$people = factory(App\Person::class, 100)->create();
$people = factory(App\Person::class, 20)->create();
$people = $people->concat(factory(App\Person::class, 40)->states('male')->create());
$people = $people->concat(factory(App\Person::class, 40)->states('female')->create());
// Create random member states for
// $people->each(function ($person) {