StocksNew/database/seeders/DepartmentSeeder.php
Sampanna Rimal 53c0140f58 first commit
2024-08-27 17:48:06 +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);
}
}