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