If you browse the Laravel codebase, you'll find countless references to a trait called
Macroable. This trait allows you to extend the public interface of a class in real-time. In this episode, we'll review how to use this trait in your own projects, as well as how it works under the hood.
Published on Oct 14th, 2019.
Understand.io is used by hundreds of Laravel developers to find and fix errors.
Sign up for a free 14-day trial now.