32 lines
681 B
PHP
32 lines
681 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\CabelCategory;
|
|
use App\Models\ProductCategory;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class CabelCategorySeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
$items = [
|
|
['name' => 'Netværk'],
|
|
['name' => 'Skærm'],
|
|
['name' => 'Adapters/Convertors'],
|
|
['name' => 'Strøm'],
|
|
['name' => 'USB'],
|
|
['name' => 'Konsole'],
|
|
];
|
|
foreach ($items as $item) {
|
|
CabelCategory::create($item);
|
|
}
|
|
}
|
|
}
|