29 lines
532 B
PHP
29 lines
532 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use App\Models\Brand;
|
||
|
use App\Models\Product;
|
||
|
use App\Models\ProductCategory;
|
||
|
use App\Models\ProductModel;
|
||
|
use App\Models\ProductSubcategory;
|
||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
|
||
|
class ProductSeeder extends Seeder
|
||
|
{
|
||
|
/**
|
||
|
* Run the database seeds.
|
||
|
*
|
||
|
* @return void
|
||
|
*/
|
||
|
public function run()
|
||
|
{
|
||
|
$items = [
|
||
|
];
|
||
|
foreach ($items as $item) {
|
||
|
Product::create($item);
|
||
|
}
|
||
|
}
|
||
|
}
|