*/ public function getMostPlayed(int $count = 6, ?User $scopedUser = null): Collection { return Artist::withMeta($scopedUser ?? $this->auth->user()) ->isStandard() ->orderByDesc('play_count') ->limit($count) ->get(); } public function getOne(int $id, ?User $scopedUser = null): Artist { return Artist::withMeta($scopedUser ?? $this->auth->user()) ->where('artists.id', $id) ->first(); } /** @return Collection|array */ public function getByIds(array $ids, ?User $scopedUser = null): Collection { return Artist::withMeta($scopedUser ?? $this->auth->user()) ->isStandard() ->whereIn('artists.id', $ids) ->get(); } }