getUserFromPlainTextToken($request->api_token), Response::HTTP_UNAUTHORIZED ); $url = $iTunesService->getTrackUrl($request->q, $album->name, $album->artist->name); abort_unless((bool) $url, Response::HTTP_NOT_FOUND, "Koel can't find such a song on iTunes Store."); return redirect($url); } }