Add the onion, carrots, celery, and garlic, and cook until the onions are translucent and the vegetables have softened, 6 to 8 minutes. Add the bay leaves, salt, pepper, turmeric, cayenne, paprika, and thyme, and cook another minute or so until toasted and fragrant.