mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-19 20:14:09 -08:00
922d6937ae
* There is no notes field on accessories. Fixes Importer Test. * Fix notification test. We should see a checkout not allowed exception when trying to check out to a location if the asset requires acceptance. * Fix Custom field import. Add a test for custom field import, and fix a few issues related to importing custom fields. This will restore v3 functionality. * Add UI support for mapping custom fields. This still requires the field mappings to be created/assigned in advance, but will fetch all custom field names and allow them to be selected when setting up custom field mappings. This commit also updates laravel-mix to v1.4.3 and other node dependencies to fix some build issues. * Fix some requestable asset page/assetloc issues. I'd love to know why laravel expections relationships to be in lower case... but thats a question for another day.
18 lines
381 B
PHP
18 lines
381 B
PHP
<?php
|
|
|
|
|
|
$factory->define(App\Models\CustomField::class, function (Faker\Generator $faker) {
|
|
return [
|
|
'name' => $faker->catchPhrase,
|
|
'format' => 'IP',
|
|
'element' => 'text',
|
|
];
|
|
});
|
|
|
|
$factory->define(App\Models\CustomFieldset::class, function (Faker\Generator $faker) {
|
|
return [
|
|
'name' => $faker->catchPhrase,
|
|
'user_id' => Auth::id()
|
|
];
|
|
});
|