snipe-it/database/factories/ManufacturerFactory.php

130 lines
3.3 KiB
PHP
Raw Normal View History

<?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(),
];
});
2017-10-07 03:19:07 -07:00
// 1
$factory->state(App\Models\Manufacturer::class, 'apple', function ($faker) {
return [
'name' => 'Apple',
'url' => 'https://apple.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.apple.com',
'image' => 'apple.jpg',
];
});
2017-10-07 03:19:07 -07:00
// 2
$factory->state(App\Models\Manufacturer::class, 'microsoft', function ($faker) {
return [
'name' => 'Microsoft',
'url' => 'https://microsoft.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.microsoft.com',
'image' => 'microsoft.png',
];
});
2017-10-07 03:19:07 -07:00
// 3
$factory->state(App\Models\Manufacturer::class, 'dell', function ($faker) {
return [
'name' => 'Dell',
'url' => 'https://dell.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.dell.com',
'image' => 'dell.png',
];
});
2017-10-07 03:19:07 -07:00
// 4
$factory->state(App\Models\Manufacturer::class, 'asus', function ($faker) {
return [
'name' => 'Asus',
'url' => 'https://asus.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.asus.com',
'image' => 'asus.png',
];
});
2017-10-07 03:19:07 -07:00
// 5
$factory->state(App\Models\Manufacturer::class, 'hp', function ($faker) {
return [
'name' => 'HP',
'url' => 'https://hp.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.hp.com',
'image' => 'hp.png',
];
});
2017-10-07 03:19:07 -07:00
// 6
$factory->state(App\Models\Manufacturer::class, 'lenovo', function ($faker) {
return [
'name' => 'Lenovo',
'url' => 'https://lenovo.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.lenovo.com',
'image' => 'lenovo.jpg',
];
});
2017-10-07 03:19:07 -07:00
// 7
$factory->state(App\Models\Manufacturer::class, 'lg', function ($faker) {
return [
'name' => 'LG',
'url' => 'https://lg.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.lg.com',
'image' => 'lg.jpg',
];
});
2017-10-07 03:19:07 -07:00
// 8
$factory->state(App\Models\Manufacturer::class, 'polycom', function ($faker) {
return [
'name' => 'Polycom',
'url' => 'https://polycom.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.polycom.com',
'image' => 'polycom.png',
];
});
2017-10-07 03:19:07 -07:00
// 9
$factory->state(App\Models\Manufacturer::class, 'adobe', function ($faker) {
return [
'name' => 'Adobe',
'url' => 'https://adobe.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.adobe.com',
'image' => 'adobe.jpg',
];
});
2017-10-07 02:46:04 -07:00
2017-10-07 03:19:07 -07:00
// 10
2017-10-07 02:46:04 -07:00
$factory->state(App\Models\Manufacturer::class, 'avery', function ($faker) {
return [
'name' => 'Avery',
'url' => 'https://avery.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.avery.com',
'image' => 'avery.png',
2017-10-07 02:46:04 -07:00
];
});
// 11
$factory->state(App\Models\Manufacturer::class, 'crucial', function ($faker) {
return [
'name' => 'Crucial',
'url' => 'https://crucial.com',
2017-10-28 05:46:43 -07:00
'support_url' => 'https://support.crucial.com',
'image' => 'crucial.jpg',
];
});