29 lines
808 B
PHP
29 lines
808 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use App\Models\Manufacturer;
|
|
|
|
class ManufacturerSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// Create predefined Manufacturers
|
|
$manufacturers = [
|
|
['name' => 'Bambulab', 'description' => 'Bambulab is a manufacturer of high quality products.', 'website' => 'https://bambulab.com', 'logo' => ''],
|
|
['name' => 'Sunlu', 'description' => 'Sunlu is a manufacturer of high quality products.', 'website' => 'https://sunlu.com', 'logo' => '']
|
|
|
|
];
|
|
|
|
foreach ($manufacturers as $manufacturer) {
|
|
Manufacturer::create($manufacturer);
|
|
}
|
|
|
|
}
|
|
}
|