Getting laid off means you can collect unemployment. Fired means you cannot.
Both of those you can collect unemployment. If YOU decide to quit, then you do not.
Generally if the company decides to end it, you get unemployment, but if you decide to leave, you don’t. Generally, barring fringe exceptional cases.