Heat olive oil in a skillet over medium heat and cook diced onion for 3 to 5 minutes until the onion is translucent.
Add minced garlic and ground beef to the skillet and cook for 5 to 10 minutes until the beef is browned.
Add tomato sauce, chili powder, salt, pepper, chili flake, garlic powder, oregano, and basil to the skillet and cook until it begins to bubble, then turn the skillet's heat to low and add the bay leaves.
Boil a large pot of well-salted water over high heat, then add the spaghetti and cook for 7 to 10 minutes until the pasta is done.
Drain the pasta, add it to the sauce, and mix well, then top with parmesan cheese!