snipe-it/database/seeds/CategorySeeder.php

17 lines
482 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, 10)->states('asset-category')->create();
factory(Category::class, 10)->states('accessory-category')->create();
factory(Category::class, 10)->states('component-category')->create();
factory(Category::class, 10)->states('consumable-category')->create();
2016-03-25 01:18:05 -07:00
}
}