snipe-it/database/seeds/ComponentSeeder.php
2017-10-07 06:16:53 -07:00

17 lines
539 B
PHP

<?php
use Illuminate\Database\Seeder;
use App\Models\Component;
class ComponentSeeder extends Seeder
{
public function run()
{
Component::truncate();
DB::table('components_assets')->truncate();
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
}
}