24 lines
438 B
PHP
24 lines
438 B
PHP
<?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);
|
|
}
|
|
}
|
|
}
|