illuminate/macroable
Illuminate Macroable adds Laravel’s Macroable trait, letting you register custom methods (macros) on classes at runtime. Extend core components or your own objects without inheritance, enabling flexible, discoverable APIs and clean, centralized extension points.
String, Collection, Model) without modifying source code, accelerating feature development and customization.String or Collection) with minimal overhead. It’s already part of Laravel, so no extra dependencies—just use it to create reusable, project-specific helpers that keep our code DRY and clean."How can I help you explore Laravel packages today?