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

24 lines
438 B
PHP
Raw Permalink Normal View History

2024-05-16 03:46:08 +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);
}
}
}