Php-guide.7z Site
Objects of a superclass should be replaceable with objects of its subclasses without breaking the application.
You should be able to add a new payment method (e.g., Stripe) by creating a new class that extends a base interface, rather than rewriting your existing checkout logic. L: Liskov Substitution Principle (LSP) php-guide.7z
In Laravel or standard PHP, a UserController should only handle HTTP requests. It should not directly calculate payroll or send emails; those tasks belong in separate services or observers. O: Open-Closed Principle (OCP) Objects of a superclass should be replaceable with