Back to the Learning

Beep Beep. Subscription Required.

Laracasts is packed full with over 1,000 lessons just like this one.
Sign up to get full access or log in to your account and sit back.

About This Episode

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.

Back to Series Button