app\models\Beatmap::scoresBest PHP Method

scoresBest() public method

public scoresBest ( $mode = null )
    public function scoresBest($mode = null)
    {
        return $this->getScores("App\\Models\\Score\\Best", $mode);
    }

Usage Example

Ejemplo n.º 1
0
 public function includeScoresBest(Beatmap $beatmap)
 {
     $scores = $beatmap->scoresBest()->defaultListing()->limit(config('osu.beatmaps.max-scores'))->get();
     return $this->collection($scores, new ScoreTransformer());
 }