mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 12:04:21 -08:00
24 lines
451 B
PHP
24 lines
451 B
PHP
|
<?php
|
||
|
|
||
|
|
||
|
$factory->define(App\Models\CustomFieldset::class, function (Faker\Generator $faker) {
|
||
|
return [
|
||
|
'name' => $faker->catchPhrase,
|
||
|
];
|
||
|
});
|
||
|
|
||
|
$factory->state(App\Models\CustomFieldset::class, 'mobile', function ($faker) {
|
||
|
return [
|
||
|
'name' => 'Mobile Devices',
|
||
|
];
|
||
|
});
|
||
|
|
||
|
$factory->state(App\Models\CustomFieldset::class, 'computer', function ($faker) {
|
||
|
return [
|
||
|
'name' => 'Laptops and Desktops',
|
||
|
];
|
||
|
});
|
||
|
|
||
|
|
||
|
|