mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 22:19:41 -08:00
14 lines
270 B
PHP
14 lines
270 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, 'component',10)->create();
|
|
}
|
|
}
|