mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
114 lines
2.7 KiB
PHP
114 lines
2.7 KiB
PHP
<?php
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Asset Model Factories
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Factories related exclusively to creating models ..
|
|
|
|
|
*/
|
|
|
|
$factory->define(App\Models\Manufacturer::class, function (Faker\Generator $faker) {
|
|
return [
|
|
'user_id' => 1,
|
|
'support_phone' => $faker->phoneNumber(),
|
|
'url' => $faker->url(),
|
|
'support_email' => $faker->safeEmail(),
|
|
];
|
|
});
|
|
|
|
|
|
// 1
|
|
$factory->state(App\Models\Manufacturer::class, 'apple', function ($faker) {
|
|
return [
|
|
'name' => 'Apple',
|
|
'url' => 'https://apple.com',
|
|
'support_url' => 'https://support.apple.com'
|
|
];
|
|
});
|
|
|
|
// 2
|
|
$factory->state(App\Models\Manufacturer::class, 'microsoft', function ($faker) {
|
|
return [
|
|
'name' => 'Microsoft',
|
|
'url' => 'https://microsoft.com',
|
|
'support_url' => 'https://support.microsoft.com'
|
|
];
|
|
});
|
|
|
|
// 3
|
|
$factory->state(App\Models\Manufacturer::class, 'dell', function ($faker) {
|
|
return [
|
|
'name' => 'Dell',
|
|
'url' => 'https://dell.com',
|
|
'support_url' => 'https://support.dell.com'
|
|
];
|
|
});
|
|
|
|
// 4
|
|
$factory->state(App\Models\Manufacturer::class, 'asus', function ($faker) {
|
|
return [
|
|
'name' => 'Asus',
|
|
'url' => 'https://asus.com',
|
|
'support_url' => 'https://support.asus.com'
|
|
];
|
|
});
|
|
|
|
// 5
|
|
$factory->state(App\Models\Manufacturer::class, 'hp', function ($faker) {
|
|
return [
|
|
'name' => 'HP',
|
|
'url' => 'https://hp.com',
|
|
'support_url' => 'https://support.hp.com'
|
|
];
|
|
});
|
|
|
|
// 6
|
|
$factory->state(App\Models\Manufacturer::class, 'lenovo', function ($faker) {
|
|
return [
|
|
'name' => 'Lenovo',
|
|
'url' => 'https://lenovo.com',
|
|
'support_url' => 'https://support.lenovo.com'
|
|
];
|
|
});
|
|
|
|
// 7
|
|
$factory->state(App\Models\Manufacturer::class, 'lg', function ($faker) {
|
|
return [
|
|
'name' => 'LG',
|
|
'url' => 'https://lg.com',
|
|
'support_url' => 'https://support.lg.com'
|
|
];
|
|
});
|
|
|
|
// 8
|
|
$factory->state(App\Models\Manufacturer::class, 'polycom', function ($faker) {
|
|
return [
|
|
'name' => 'Polycom',
|
|
'url' => 'https://polycom.com',
|
|
'support_url' => 'https://support.polycom.com'
|
|
];
|
|
});
|
|
|
|
// 9
|
|
$factory->state(App\Models\Manufacturer::class, 'adobe', function ($faker) {
|
|
return [
|
|
'name' => 'Adobe',
|
|
'url' => 'https://adobe.com',
|
|
'support_url' => 'https://support.adobe.com'
|
|
];
|
|
});
|
|
|
|
// 10
|
|
$factory->state(App\Models\Manufacturer::class, 'avery', function ($faker) {
|
|
return [
|
|
'name' => 'Avery',
|
|
'url' => 'https://avery.com',
|
|
'support_url' => 'https://support.avery.com'
|
|
];
|
|
});
|
|
|
|
|
|
|