If you hunt around the Laravel framework source code, you'll find frequent references to a trait called
Macroable. This allows you to dynamically extend the surface area of a given class. In this lesson, I'll demonstrate how to create your own macros, and review how everything is wired behind the scenes to make this particular functionality possible.
Published on May 29th, 2018.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.