Cattle pastures usually just mount the panels higher up, and put safety cages around service panels and electrical conduit.
The most I’ve seen with chickens is just a couple panels on the roof of the coop, or barn for industrial sized chicken processing. (I’m not going to call it farming, it’s basically a factory)




Any time I’ve seen PV panels in a pasture field, they’re all set up a little differently depending on the field, animals, etc.
The ones with cattle look closer to the ones in the parking lot in the post photo, they’re way up on a post, all the wiring is either kept up high or are in a metal conduit. I don’t think I’ve ever seen them with goats though. Goats are assholes.