stream(); return; } (new PHPStreamer($id))->stream(); // Exit here to avoid accidentally sending extra content at the end of the file. exit; } /** * Get the lyrics of a song. * * @param $id * * @return \Illuminate\Http\JsonResponse */ public function getLyrics($id) { return response()->json(Song::findOrFail($id)->lyrics); } }