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