Macroable
trait Macroable
Properties
static protected array | $macros | The registered string macros. |
Methods
static void
macro(string $name, callable $macro)
Register a custom macro.
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.
Details
at line 24
static void
macro(string $name, callable $macro)
Register a custom macro.
at line 35
static bool
hasMacro(string $name)
Checks if macro is registered.
at line 49
static mixed
__callStatic(string $method, array $parameters)
Dynamically handle calls to the class.
at line 71
mixed
__call(string $method, array $parameters)
Dynamically handle calls to the class.