/** * Display the specified resource. * * @param int $id * @return Response */ public function getLastCover() { // $cover = Cover::orderBy('created_at', 'desc')->first(); return response()->json($cover); }