trait Macroable (View source)
static protected array | $macros | The registered string macros. |
static void | macro(string $name, object|callable $macro) Register a custom macro. | |
static void | mixin(object $mixin, bool $replace = true) Mix another object into the class. | |
static bool | hasMacro(string $name) Checks if macro is registered. | |
static mixed | __callStatic(string $method, array $parameters) Dynamically handle calls to the class. | |
mixed | __call(string $method, array $parameters) Dynamically handle calls to the class. |
Register a custom macro.
Mix another object into the class.
Checks if macro is registered.
Dynamically handle calls to the class.
Dynamically handle calls to the class.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.8/Illuminate/Support/Traits/Macroable.html