Start by heating 4 tablespoons of butter in a large skillet over medium heat. Add the chopped onions and sauté them for 7-8 minutes until golden and caramelized. Toss in the mushrooms and cook for another 4 minutes, letting them soften and release their juices. Add the minced garlic for extra fragrance, stir everything together, and transfer it to a large bowl.
Using the same skillet, melt the remaining 4 tablespoons of butter. Stir in the flour or cornstarch, whisking constantly to form a smooth paste. Slowly pour in the half-and-half, continuing to whisk until the sauce thickens, about 4-5 minutes. Add salt and pepper, then taste and adjust as needed to create the perfect balance.
Boil a pot of water and blanch the green beans for 6-7 minutes. This keeps them tender yet crisp. Drain immediately and transfer them to an ice bath to lock in their vibrant green color and stop the cooking process.
Mix the sautéed vegetables into the cream sauce, then fold in the green beans until they’re evenly coated. Pour the entire mixture into a greased 9-inch baking dish. Sprinkle Parmesan on top for a cheesy twist, then smooth the surface evenly.
Preheat your oven to 350°F. Bake the casserole uncovered for 25 minutes or until you see gentle bubbles around the edges. Remove it from the oven and sprinkle the crispy fried onions on top. Bake for another 5 minutes to lightly brown the onions and make them irresistibly crispy.
Bring the casserole out of the oven, garnish with some fresh parsley if you’d like, and serve it warm. It’s a dish that’s guaranteed to disappear quickly!