Heat the vegetable oil in a Dutch oven over medium heat. Add the pork cubes and brown them on all sides, about 6 to 8 minutes. Season with salt and black pepper as they cook.
Stir in the minced garlic and dried thyme. Cook for 1 minute until fragrant.
Sprinkle the flour over the pork and stir to coat everything evenly. Cook for another minute to remove the raw flour taste.
Slowly pour in the beef broth while stirring to prevent lumps. Add the bay leaves and bring the mixture to a simmer.
Cover the Dutch oven and transfer it to a 325°F oven. Cook for 1 hour.
Remove the pot from the oven and stir in the carrots and pearl onions. Cover and return to the oven for 45 more minutes, or until the pork is fork-tender and the gravy has thickened.
Taste and adjust salt and pepper if needed. Remove the bay leaves before serving.