snipe-it/database/seeds/DepartmentSeeder.php

19 lines
615 B
PHP
Raw Normal View History

2017-10-07 03:18:36 -07:00
<?php
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();
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
}
}