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