order === 'rand') { return SongResource::collection($this->songRepository->getRandom($request->limit, $this->user)); } else { return SongResource::collection( $this->songRepository->getForQueue( $request->sort, $request->order, $this->user, $request->limit, ) ); } } }