snipe-it/database/seeds/CategorySeeder.php
Daniel Meltzer a2bf685901 Seeds and tests (#3210)
* Update composer phpcs

* Fix failing model validation in the database seeders.  Should make travis happy.  Also fix a few test issues
2017-01-18 16:50:33 -08:00

17 lines
538 B
PHP
Executable file

<?php
use Illuminate\Database\Seeder;
use App\Models\Category;
class CategorySeeder extends Seeder
{
public function run()
{
Category::truncate();
factory(Category::class, 'category', 10)->create(['category_type' => 'asset']);
factory(Category::class, 'category', 10)->create(['category_type' => 'accessory']);
factory(Category::class, 'category', 10)->create(['category_type' => 'consumable']);
factory(Category::class, 'category', 10)->create(['category_type' => 'component']);
}
}