mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
18 lines
511 B
PHP
18 lines
511 B
PHP
<?php
|
|
use Illuminate\Database\Seeder;
|
|
use App\Models\Accessory;
|
|
|
|
|
|
class AccessorySeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
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();
|
|
}
|
|
}
|