The PersonFactory is now using factory states to decide if male, female or
company.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user