I guess we don’t need to manually create the license seats

This commit is contained in:
snipe 2017-10-07 08:17:38 -07:00
parent 11f99a963a
commit 9f2fc21649

View file

@ -31,13 +31,6 @@ $factory->state(App\Models\License::class, 'photoshop', function ($faker) {
'seats' => 10,
];
for ($x = 0; $x < $data['seats']; $x++) {
$seat = new App\Models\LicenseSeat;
$seat->license_id = 1;
$seat->create();
}
return $data;
});
@ -52,11 +45,6 @@ $factory->state(App\Models\License::class, 'acrobat', function ($faker) {
'seats' => 10,
];
for ($x = 0; $x < $data['seats']; $x++) {
$seat = new App\Models\LicenseSeat;
$seat->license_id = 2;
$seat->create();
}
return $data;
});
@ -70,11 +58,6 @@ $factory->state(App\Models\License::class, 'indesign', function ($faker) {
'seats' => 10,
];
for ($x = 0; $x < $data['seats']; $x++) {
$seat = new App\Models\LicenseSeat;
$seat->license_id = 3;
$seat->create();
}
return $data;
});
@ -89,11 +72,6 @@ $factory->state(App\Models\License::class, 'office', function ($faker) {
'seats' => 20,
];
for ($x = 0; $x < $data['seats']; $x++) {
$seat = new App\Models\LicenseSeat;
$seat->license_id = 4;
$seat->create();
}
return $data;
});