01 - Preheat the oven to 400°F.
02 - In a large oven-safe skillet or Dutch oven, heat olive oil over medium heat. Add onions and sauté until softened, about 3 minutes.
03 - Add mushrooms and cook until golden and most of the moisture has evaporated, about 6 minutes.
04 - Add garlic and cook for 1 minute. Stir in the drained white beans until evenly distributed.
05 - Sprinkle in smoked paprika, cumin, chili flakes, salt, and pepper. Mix well to coat all ingredients evenly.
06 - Pour in vegetable broth and simmer for 5 minutes, allowing the flavors to meld together.
07 - Reduce heat to low. Stir in heavy cream and cream cheese. Cook gently until the mixture is creamy and well-blended, about 3 minutes. Adjust seasoning if needed.
08 - In a small bowl, toss together shredded cheddar, panko breadcrumbs, fresh herbs, and melted butter or olive oil until evenly combined.
09 - Sprinkle the cheddar herb topping evenly over the bean and mushroom mixture in the skillet.
10 - Transfer the skillet to the oven. Bake for 15 minutes or until the topping is golden and bubbling.
11 - Let rest for 5 minutes before serving to allow the sauce to thicken slightly.