- Preheat your oven to 375°F (190°C).
- In a saucepan over medium heat, melt the butter. Add the minced garlic and cook for 1-2 minutes until fragrant.
- Stir in the flour and cook for an additional 1-2 minutes to make a roux.
- Gradually whisk in the heavy cream until smooth and thickened. Season with salt and pepper to taste. Remove from heat.
- In a greased baking dish, layer half of the sliced potatoes and onions. Pour half of the cream mixture over the potatoes. Sprinkle half of the shredded cheese on top.
- Repeat the layers with the remaining potatoes, onions, cream mixture, and cheese.
- Cover the baking dish with aluminum foil and bake in the preheated oven for 45-50 minutes, or until the potatoes are tender when pierced with a fork.
- Remove the foil and continue baking for an additional 10-15 minutes, or until the cheese is golden brown and bubbly.
- Remove from the oven and let it cool for a few minutes before serving. Garnish with fresh chopped parsley if desired.
- Serve the scalloped potatoes as a delicious side dish alongside your favorite main course.
Enjoy your creamy and flavorful scalloped potatoes! Feel free to customize the recipe by adding cooked bacon, ham, or different types of cheese for variation.