Laravel macros are a very simple and very powerful feature that allows you to add on custom functionality to internal Laravel classes or components.

laravel macro

In this video you will see:

☑ What are Laravel Macros?

☑ How to create a Macro?

☑ How to create a class-based macro using mixin?

☑ How do Macros work behind the scenes in Laravel codebase?