One of the things that that facades have going for them, is that they are elegant to look at it. But in my view, Facades hide the core logic, and make it difficult to understand how exactly a class works. Often times, when debugging, you need to look at the underlying implementation of a Laravel […]
Writing a Laravel Facade With a Service Provider
Prior to me discovering how the Laravel internals work, I would define static methods for most of my services. It quickly gets difficult to manage, once you need to keep non static state for a service, or you want dynamic behavior that is determined at runtime. In this post I’ll share how I defined my […]