put all someone’s eggs in one basket

To “put all someone’s eggs in one basket,” means to rely on only one thing to bring you success.
Ex. It’s not good to only invest in the stock market. You don’t want to put all your eggs in one basket.