snipe-it/database/seeds/ComponentSeeder.php

17 lines
539 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
use Illuminate\Database\Seeder;
use App\Models\Component;
class ComponentSeeder extends Seeder
{
public function run()
{
Component::truncate();
DB::table('components_assets')->truncate();
2017-10-07 06:16:53 -07:00
factory(Component::class, 1)->states('ram-crucial4')->create(); // 1
factory(Component::class, 1)->states('ram-crucial8')->create(); // 1
factory(Component::class, 1)->states('ssd-crucial120')->create(); // 1
factory(Component::class, 1)->states('ssd-crucial240')->create(); // 1
}
2016-03-25 01:18:05 -07:00
}