
Decorator Pattern in Laravel: Adding Caching and Logging Without Touching Your Classes
Sooner or later every repository gets the same request: can we cache this? The quickest answer is to drop Cache::remember() straight into the repository methods. You can. I did it for years. The problem shows up a few months later,…


