Heera/database/seeders/DepartmentSeeder.php
2024-05-16 09:31:08 +05:45

26 lines
508 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Modules\Admin\Models\Department;
class DepartmentSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
$departments = [
['name' => 'Marketing'],
['name' => 'Finance'],
['name' => 'HR'],
['name' => 'IT'],
];
Department::insert($departments);
}
}