snipe-it/database/seeders/DepartmentSeeder.php

21 lines
608 B
PHP
Raw Normal View History

2017-10-07 03:18:36 -07:00
<?php
2021-06-10 13:18:00 -07:00
namespace Database\Seeders;
2017-10-07 03:18:36 -07:00
use App\Models\Department;
use Illuminate\Database\Seeder;
2017-10-07 03:18:36 -07:00
class DepartmentSeeder extends Seeder
{
public function run()
{
Department::truncate();
2021-06-10 13:17:44 -07:00
Department::factory()->count(1)->hr()->create(); // 1
Department::factory()->count(1)->engineering()->create(); // 2
Department::factory()->count(1)->marketing()->create(); // 3
Department::factory()->count(1)->client()->create(); // 4
Department::factory()->count(1)->product()->create(); // 5
Department::factory()->count(1)->silly()->create(); // 6
2017-10-07 03:18:36 -07:00
}
}