snipe-it/database/seeds/ComponentSeeder.php

14 lines
270 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();
factory(Component::class, 'component',10)->create();
}
}