It's common in some companies.
Valid point about employees on visas though.
But the real problem is any law that would deport someone 30 days after they were laid off, even if they had been working for years. That should be 6 months minimum.
Agree that no one should be getting deported on 30 days because they got laid off.