Laravel 5 Macros: Defining a Callback Function Macro With macro
The macro method is used to add a callback function macro to any class that utilize the "Illuminate\Support\Traits\Macroable" trait.The signature of the macro method is: 1 public static function macro ( 2 $ name , 3 $ macro 4 ) ;The following...