mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
20 lines
492 B
PHP
20 lines
492 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Consumable;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class ConsumableSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
Consumable::truncate();
|
|
DB::table('consumables_users')->truncate();
|
|
Consumable::factory()->count(1)->cardstock()->create(); // 1
|
|
Consumable::factory()->count(1)->paper()->create(); // 2
|
|
Consumable::factory()->count(1)->ink()->create(); // 3
|
|
}
|
|
}
|