public function index() { $pets = Pet::all(); return response()->json(['data' => $this->transformCollection($pets)], 200); }