I've often heard the expression that when a door closes another one opens.
Most folks go through a period of anger and then depression when they are laid off or fired. Try to process these feelings as swiftly as you are able to and then be optimistic about finding that better job.
Incidentally, I have never been laid off. I was on my last job for almost 30 years until I retired. However, when I was young, I managed to get myself fired a few times. Looking back I probably deserved to be fired too. More importantly, each time I left a job (I also quit a couple of jobs) I ended up finding a better job. Now I have the best job ever, being retired with enough money on which to live a decent life.