snipe-it/database/seeds/CategorySeeder.php

17 lines
447 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?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();
}
}