Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Cocoa committed Jul 24, 2024
1 parent 903daed commit 3752abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Items/ItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function wishlist(Item $item)
$user = auth()->user();
$attached = $user->updateWishlist($item);
$status = $attached ? 'added' : 'removed';
cache()->tags(['wishlist'])->forget($item->getKey())
cache()->tags(['wishlist'])->forget($item->getKey());

return back()->withStatus(trans("ui.wishlist.{$status}", ['item' => Str::limit($item->english_name, 28)]));
}
Expand All @@ -72,7 +72,7 @@ public function closet(Item $item)
$user = auth()->user();
$attached = $user->updateCloset($item);
$status = $attached ? 'added' : 'removed';
cache()->tags(['closet'])->forget($item->getKey())
cache()->tags(['closet'])->forget($item->getKey());

return back()->withStatus(trans("ui.closet.{$status}", ['item' => Str::limit($item->english_name, 28)]));
}
Expand Down

0 comments on commit 3752abe

Please sign in to comment.