Php-guide.7z

A class should have one, and only one, reason to change.

Classes should be open for extension but closed for modification. 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) A class should have one, and only one, reason to change