mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-28 15:09:40 -08:00
17 lines
447 B
PHP
17 lines
447 B
PHP
|
<?php
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use App\Models\Category;
|
||
|
|
||
|
class CategorySeeder extends Seeder
|
||
|
{
|
||
|
public function run()
|
||
|
{
|
||
|
Category::truncate();
|
||
|
factory(Category::class, 'asset-category', 10)->create();
|
||
|
factory(Category::class, 'accessory-category', 5)->create();
|
||
|
factory(Category::class, 'consumable-category', 5)->create();
|
||
|
factory(Category::class, 'component-category', 5)->create();
|
||
|
}
|
||
|
|
||
|
}
|