truncate(); $admin = User::where('permissions->superuser', '1')->first() ?? User::factory()->firstAdmin()->create(); Consumable::factory()->count(1)->cardstock()->create(['created_by' => $admin->id]); Consumable::factory()->count(1)->paper()->create(['created_by' => $admin->id]); Consumable::factory()->count(1)->ink()->create(['created_by' => $admin->id]); } }