To put all your eggs in one basket means to depend for your success on a single plan or person.

I didn’t want to put all my eggs in one basket, so I applied for several master’s programmes, not just the one in the University of Edinburgh.