mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Set default labels in seeders
This commit is contained in:
parent
1e22b8e567
commit
9a25cb3ee7
|
@ -18,13 +18,15 @@ $factory->define(Statuslabel::class, function (Faker\Generator $faker) {
|
|||
$factory->state(Statuslabel::class, 'rtd', function (Faker\Generator $faker) {
|
||||
return [
|
||||
'notes' => $faker->sentence,
|
||||
'deployable' => 1
|
||||
'deployable' => 1,
|
||||
'default_label' => 1,
|
||||
];
|
||||
});
|
||||
$factory->state(Statuslabel::class, 'pending', function (Faker\Generator $faker) {
|
||||
return [
|
||||
'notes' => $faker->sentence,
|
||||
'pending' => 1,
|
||||
'default_label' => 0,
|
||||
];
|
||||
});
|
||||
|
||||
|
@ -32,29 +34,34 @@ $factory->state(Statuslabel::class, 'archived', function (Faker\Generator $faker
|
|||
return [
|
||||
'notes' => 'These assets are permanently undeployable',
|
||||
'archived' => 1,
|
||||
'default_label' => 0,
|
||||
];
|
||||
});
|
||||
|
||||
$factory->state(Statuslabel::class, 'out_for_diagnostics', function (Faker\Generator $faker) {
|
||||
return [
|
||||
'name' => 'Out for Diagnostics',
|
||||
'default_label' => 0,
|
||||
];
|
||||
});
|
||||
|
||||
$factory->state(Statuslabel::class, 'out_for_repair', function (Faker\Generator $faker) {
|
||||
return [
|
||||
'name' => 'Out for Repair',
|
||||
'default_label' => 0,
|
||||
];
|
||||
});
|
||||
|
||||
$factory->state(Statuslabel::class, 'broken', function (Faker\Generator $faker) {
|
||||
return [
|
||||
'name' => 'Broken - Not Fixable',
|
||||
'default_label' => 0,
|
||||
];
|
||||
});
|
||||
|
||||
$factory->state(Statuslabel::class, 'lost', function (Faker\Generator $faker) {
|
||||
return [
|
||||
'name' => 'Lost/Stolen',
|
||||
'default_label' => 0,
|
||||
];
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue