mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
a2bf685901
* Update composer phpcs * Fix failing model validation in the database seeders. Should make travis happy. Also fix a few test issues
17 lines
538 B
PHP
Executable file
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']);
|
|
}
|
|
|
|
}
|