src/Achievement.php
public function addProgressToAchiever($achiever, $points = 1)
    {
        $progress = $this->getOrCreateProgressForAchiever($achiever);
        if (!$progress->isUnlocked()) {
            $progress->points = $progress->points + $points;
            $progress->save();
        }
    }
public function addProgressToAchiever($achiever, $points = 1)
    {
        $progress = $this->getOrCreateProgressForAchiever($achiever);
        if (!$progress->isUnlocked()) {
            $progress->points = $progress->points + $points;
            $progress->save();
        }
    }
public function addProgressToAchiever ( $ achiever , $ points = 1 ) { $ progress = $ this -> getOrCreateProgressForAchiever ( $ achiever ) ; if ( ! $ progress -> isUnlocked ( ) ) { $ progress -> points = $ progress -> points + $ points ; $ progress -> save ( ) ; } }
Adds a specified amount of points to the achievement.

@param mixed $achiever The entity that will add progress to this achievement
@param int   $points   The amount of points to be added to this achievement
Adds a specified amount of points to the achievement .