Tag: laravel
-
Dynamically Macro A Class To A Laravel Macroable Class
Laravel Macros I was recently working on a project where I wanted to make a classes functions available inside of the built in Laravel Str:: helper. Laravel Macros are the answer to this issue. However, I wanted to make adding additional methods an easy experience and needing to write and maintain a separate macro with…