pineco.de
Extending Laravel's Collection With Macros - Pine
Collections are fantastic features of the framework. With the functionality that the collection offers, we can easily handle any need that a dataset requires. But still, in some cases, we may extend with custom functionality. Understanding Macros Macros are methods which extend the functionality of a class. For example, we can write response macros to …