StocksNew/Modules/Admin/database/seeders/GenderSeeder.php

24 lines
438 B
PHP
Raw Normal View History

2024-08-27 12:03:06 +00:00
<?php
namespace Modules\Admin\database\seeders;
use Illuminate\Database\Seeder;
use Modules\Admin\Models\Gender;
class GenderSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$genders = [
['name' => 'Male'],
['name' => 'Female'],
];
foreach ($genders as $key => $gender) {
Gender::create($gender);
}
}
}