src/Likeable.php
private function incrementLikeCount()
	{
		$counter = $this->likeCounter()->first();
		
		if($counter) {
			$counter->count++;
			$counter->save();
		} else {
			$counter = new LikeCounter;
			$counter->count = 1;
			$this->likeCounter()->save($counter);
		}
	}
private function incrementLikeCount()
	{
		$counter = $this->likeCounter()->first();
		
		if($counter) {
			$counter->count++;
			$counter->save();
		} else {
			$counter = new LikeCounter;
			$counter->count = 1;
			$this->likeCounter()->save($counter);
		}
	}
private function incrementLikeCount ( ) { $ counter = $ this -> likeCounter ( ) -> first ( ) ; if ( $ counter ) { $ counter -> count ++ ; $ counter -> save ( ) ; } else { $ counter = new LikeCounter ; $ counter -> count = 1 ; $ this -> likeCounter ( ) -> save ( $ counter ) ; } }
Private. Increment the total like count stored in the counter
Private . Increment the total like count stored in the counter