Componentable
trait Componentable
Properties
static protected array | $components | The registered components. |
Methods
static void
component($name, $view, array $signature)
Register a custom component.
static bool
hasComponent($name)
Check if a component is registered.
HtmlString
renderComponent($name, array $arguments)
Render a custom component.
array
getComponentData(array $signature, array $arguments)
Prepare the component data, while respecting provided defaults.
View|mixed
__call(string $method, array $parameters)
Dynamically handle calls to the class.
Details
at line 26
static void
component($name, $view, array $signature)
Register a custom component.
at line 38
static bool
hasComponent($name)
Check if a component is registered.
at line 51
protected HtmlString
renderComponent($name, array $arguments)
Render a custom component.
at line 69
protected array
getComponentData(array $signature, array $arguments)
Prepare the component data, while respecting provided defaults.
at line 101
View|mixed
__call(string $method, array $parameters)
Dynamically handle calls to the class.