2016-03-25 01:18:05 -07:00
|
|
|
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
use App\Models\Accessory;
|
|
|
|
|
2017-10-07 02:27:02 -07:00
|
|
|
|
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();
|
2017-10-07 02:27:02 -07:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|