If a hen was fed only fruit, I could understand where it might affect egg laying because they have no room for or no access to higher protein foods.
My birds are too young to be a test case, but in my childhood we fed a lot of surplus fruit and veggies and I cannot remember my parents ever...