Remove bug in factory state

This commit is contained in:
Marcus Moore 2024-02-12 16:30:09 -08:00
parent 5b181ecea7
commit c8e12ddb5c
No known key found for this signature in database

View file

@ -145,8 +145,6 @@ class AccessoryFactory extends Factory
public function checkedOut(User $user = null)
{
return $this->afterCreating(function (Accessory $accessory) use ($user) {
$accessory->decrement('qty');
$accessory->users()->attach($accessory->id, [
'accessory_id' => $accessory->id,
'created_at' => Carbon::now(),