Added ID reference numbers

This commit is contained in:
snipe 2017-10-07 03:19:07 -07:00
parent 1608edbb28
commit 65341a5d8a

View file

@ -18,6 +18,8 @@ $factory->define(App\Models\Manufacturer::class, function (Faker\Generator $fake
]; ];
}); });
// 1
$factory->state(App\Models\Manufacturer::class, 'apple', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'apple', function ($faker) {
return [ return [
'name' => 'Apple', 'name' => 'Apple',
@ -26,7 +28,7 @@ $factory->state(App\Models\Manufacturer::class, 'apple', function ($faker) {
]; ];
}); });
// 2
$factory->state(App\Models\Manufacturer::class, 'microsoft', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'microsoft', function ($faker) {
return [ return [
'name' => 'Microsoft', 'name' => 'Microsoft',
@ -35,7 +37,7 @@ $factory->state(App\Models\Manufacturer::class, 'microsoft', function ($faker) {
]; ];
}); });
// 3
$factory->state(App\Models\Manufacturer::class, 'dell', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'dell', function ($faker) {
return [ return [
'name' => 'Dell', 'name' => 'Dell',
@ -44,6 +46,7 @@ $factory->state(App\Models\Manufacturer::class, 'dell', function ($faker) {
]; ];
}); });
// 4
$factory->state(App\Models\Manufacturer::class, 'asus', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'asus', function ($faker) {
return [ return [
'name' => 'Asus', 'name' => 'Asus',
@ -52,6 +55,7 @@ $factory->state(App\Models\Manufacturer::class, 'asus', function ($faker) {
]; ];
}); });
// 5
$factory->state(App\Models\Manufacturer::class, 'hp', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'hp', function ($faker) {
return [ return [
'name' => 'HP', 'name' => 'HP',
@ -60,6 +64,7 @@ $factory->state(App\Models\Manufacturer::class, 'hp', function ($faker) {
]; ];
}); });
// 6
$factory->state(App\Models\Manufacturer::class, 'lenovo', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'lenovo', function ($faker) {
return [ return [
'name' => 'Lenovo', 'name' => 'Lenovo',
@ -68,6 +73,7 @@ $factory->state(App\Models\Manufacturer::class, 'lenovo', function ($faker) {
]; ];
}); });
// 7
$factory->state(App\Models\Manufacturer::class, 'lg', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'lg', function ($faker) {
return [ return [
'name' => 'LG', 'name' => 'LG',
@ -76,6 +82,7 @@ $factory->state(App\Models\Manufacturer::class, 'lg', function ($faker) {
]; ];
}); });
// 8
$factory->state(App\Models\Manufacturer::class, 'polycom', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'polycom', function ($faker) {
return [ return [
'name' => 'Polycom', 'name' => 'Polycom',
@ -84,6 +91,7 @@ $factory->state(App\Models\Manufacturer::class, 'polycom', function ($faker) {
]; ];
}); });
// 9
$factory->state(App\Models\Manufacturer::class, 'adobe', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'adobe', function ($faker) {
return [ return [
'name' => 'Adobe', 'name' => 'Adobe',
@ -92,6 +100,7 @@ $factory->state(App\Models\Manufacturer::class, 'adobe', function ($faker) {
]; ];
}); });
// 10
$factory->state(App\Models\Manufacturer::class, 'avery', function ($faker) { $factory->state(App\Models\Manufacturer::class, 'avery', function ($faker) {
return [ return [
'name' => 'Avery', 'name' => 'Avery',