snipe-it/database/seeds/ComponentSeeder.php
2021-06-10 20:17:44 +00:00

18 lines
512 B
PHP

<?php
use App\Models\Component;
use Illuminate\Database\Seeder;
class ComponentSeeder extends Seeder
{
public function run()
{
Component::truncate();
DB::table('components_assets')->truncate();
Component::factory()->count(1)->ramCrucial4()->create(); // 1
Component::factory()->count(1)->ramCrucial8()->create(); // 1
Component::factory()->count(1)->ssdCrucial120()->create(); // 1
Component::factory()->count(1)->ssdCrucial240()->create(); // 1
}
}