SOLID Principles in PHP and Laravel: First Part (SRP or Single Responsibility Principle)
SRP says a class should have one reason to change. That does not mean one method or one line. It means one job. If a database change, a new JSON for…
Tech news from the best sources
SRP says a class should have one reason to change. That does not mean one method or one line. It means one job. If a database change, a new JSON for…
SINGLE RESPONSIBILITY PRINCIPLE (SRP) A class should have one, and exclusively one , reason to change. In other words, we shouldn't have a single cl…