Boil the pasta as written on the pack to al dente, drain well and set aside.
In a large pot, heat the olive oil over medium high heat. Add the onion, carrot, celery and sauté until softened, about 5 minutes. Add the garlic and cook for an additional 2 minutes. Stir in the bay leaves.
Add the tomatoes, vegetable broth and beans. Season withal the spices and salt and black pepper. Let simmer on low for about 20 minutes.
Add in the cooked pasta and keep boiling for 3-4 minutes more.
Stir in the parsley. Remove the bay leaves.
Spoon into bowls and serve with grated Parmesan cheese.