Step 1: What You Need
If you are in creative you will need a chicken spawn egg if you are survival you will need a lead or seeds.
Now with your glass blocks as shown in the picture. 5 blocks on each side except for the one that the chest is near. Now stack up to with dirt or any other block on the hopper attached to the chest and place a glass block over that hoppers.
Now go up 3 more on that glass block that you placed over the hopper until it is level with the others. If you are in creative now get out your spawn eggs and spawned the chicken in the glass opening that is above the hopper if you are in survival get out your seeds or lead whichever you chose and build a staircase up to the opening and lead them in just make sure you don't fall in. block up the opening.
Step 5: How It Works
How it works is the chickens they will start to lay eggs and when they eggs fall into the hopper and the eggs will be transported into the chest that way you never lose eggs from your egg farm. I hope you all enjoy this instructable and enjoy my others as well if you like this please vote. Thanks.