Lager-v3/database/seeders/BrandSeeder.php

49 lines
1.2 KiB
PHP
Raw Normal View History

2022-09-28 07:38:08 +00:00
<?php
namespace Database\Seeders;
use App\Models\Brand;
use Illuminate\Database\Seeder;
class BrandSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$items = [
['name' => 'Dell'],
['name' => 'HP'],
['name' => 'AOC'],
['name' => 'Samsung'],
['name' => 'LG'],
['name' => 'BenQ'],
['name' => 'Acer'],
['name' => 'Philips'],
['name' => 'Speed Demon'],
['name' => 'Chieftec'],
['name' => 'Lenovo'],
['name' => 'Fujitsu'],
['name' => 'Atom'],
['name' => 'Western Digital'],
['name' => 'Logitech'],
['name' => 'Brother'],
['name' => 'Toshiba'],
['name' => 'Microsoft'],
['name' => 'Asus'],
['name' => 'TRENDnet'],
['name' => 'TP-Link'],
['name' => 'Netgear'],
['name' => 'Linksys'],
['name' => 'Cisco'],
['name' => 'Test Brand'],
];
foreach ($items as $item) {
Brand::create($item);
}
}
}