DEV Community


Discussion on: Becoming a better Laravel developer by using the SOLID design principles. Part 2

shamshadzaheer profile image
Shamshad Zaheer

In the PaymentFactory class, we are using the same if else statements to manage different payments. Don't you think we are breaking the rule only with implementing the logic with a different wayt?

abrardev99 profile image
Abrar Ahmad Author

Good question please see above
comment by @connor leech