Skip to content

Commit

Permalink
Add notInProgressAchievements method
Browse files Browse the repository at this point in the history
  • Loading branch information
assada committed Mar 6, 2020
1 parent 02c6406 commit c9c7151
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/EntityRelationsAchievements.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,16 @@ public function inProgressAchievements(): Collection
return $this->achievements()->whereNull('unlocked_at')->where('points', '>', 0)->get();
}

/**
* Get the entity's achievements not in progress.
*
* @return Collection
*/
public function notInProgressAchievements(): Collection
{
return $this->achievements()->whereNull('unlocked_at')->where('points', '=', 0)->get();
}

/**
* Get the entity's unlocked achievements.
*
Expand Down

0 comments on commit c9c7151

Please sign in to comment.