Skip to content
This repository was archived by the owner on Aug 20, 2023. It is now read-only.

Commit 89657a6

Browse files
Updated Favoriteable
1 parent 137eae5 commit 89657a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Favoriteable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public function addFavorite()
4141
}
4242

4343
/**
44-
* @example $post->removeFavorite()
44+
* @example $post->unFavorite()
4545
*
4646
* @return mixed
4747
*/
48-
public function removeFavorite(): bool
48+
public function unFavorite(): bool
4949
{
5050
if(self::hasFavorite())
5151
return $this->favorites()->where('user_id', auth()->user()->id)->delete();

0 commit comments

Comments
 (0)