snipe-it/database/seeds/AccessorySeeder.php

18 lines
511 B
PHP
Raw Normal View History

2016-03-25 01:18:05 -07:00
<?php
use Illuminate\Database\Seeder;
use App\Models\Accessory;
2016-03-25 01:18:05 -07:00
class AccessorySeeder extends Seeder
{
public function run()
{
2017-10-07 02:45:28 -07:00
Accessory::truncate();
DB::table('accessories_users')->truncate();
factory(Accessory::class, 1)->states('apple-usb-keyboard')->create();
factory(Accessory::class, 1)->states('apple-bt-keyboard')->create();
factory(Accessory::class, 1)->states('apple-mouse')->create();
factory(Accessory::class, 1)->states('microsoft-mouse')->create();
2016-03-25 01:18:05 -07:00
}
}