Macroable (Support\Traits)
Macroable
trait Macroable (View source)
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
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Support/Traits/Macroable.html