mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 14:09:43 -08:00
21 lines
576 B
PHP
21 lines
576 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Component;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
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
|
|
}
|
|
}
|