mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-14 17:44:17 -08:00
18 lines
614 B
PHP
18 lines
614 B
PHP
|
<?php
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use App\Models\Department;
|
||
|
|
||
|
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
|
||
|
}
|
||
|
}
|