Lager-v3/database/seeders/CabelCategorySeeder.php

32 lines
681 B
PHP
Raw Permalink Normal View History

2022-09-28 07:38:08 +00:00
<?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);
}
}
}