snipe-it/database/seeds/ConsumableSeeder.php

16 lines
445 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
use Illuminate\Database\Seeder;
use App\Models\Consumable;
class ConsumableSeeder extends Seeder
{
public function run()
{
Consumable::truncate();
2017-10-07 02:46:04 -07:00
DB::table('consumables_users')->truncate();
factory(Consumable::class, 1)->states('cardstock')->create(); // 1
factory(Consumable::class, 1)->states('paper')->create(); // 2
factory(Consumable::class, 1)->states('ink')->create(); // 3
}
2016-03-25 01:18:05 -07:00
}