Open-Closed Workshop
In this workshop, we'll focus exclusively on the open-closed principle (the O in SOLID). Using real-life code, line by line, we'll refactor a confusing class into something far more manageable and extendable. Once finished, we'll have gained the luxury of introducing new functionality, not by modifying existing code, but by instead writing a new class.
Series episodes
What We Are Refactoring
11m 36sExplore a real-life refactoring example using Laracasts code to apply the open-closed principle and unlock powerful improvements in this engaging tutorial.
Low-Hanging Refactors
15m 52sStart refactoring your Query class with the squint test to spot quick improvements like indentation and method names in this friendly Laracasts tutorial.
Remove Conditionals and Embrace the Pipeline
9m 2sDiscover how to simplify your code by removing conditionals and using the pipeline pattern in this clear, friendly Laracasts tutorial.
Extract What Changes into a Service Provider
6m 52sLearn how to extract changes from your Query class into a service provider, making future updates easy without modifying core code in this Laracasts tutorial.
Discussing Responsibility
4m 58sReflect on responsibility and awareness in coding with this thoughtful Laracasts episode, helping you write cleaner, more maintainable classes and components.




