abstract class Component (View source)
static protected array | $propertyCache | The cache of public property names, keyed by class. | |
static protected array | $methodCache | The cache of public method names, keyed by class. | |
protected array | $except | The properties / methods that should not be exposed to the component. | |
string | $componentName | The component alias name. | |
ComponentAttributeBag | $attributes | The component attributes. |
View|Htmlable|Closure|string | render() Get the view / view contents that represent the component. | |
View|Htmlable|Closure|string | resolveView() Resolve the Blade view or view file that should be used when rendering the component. | |
string | createBladeViewFromString(Factory $factory, string $contents) Create a Blade view with the raw component string content. | |
array | data() Get the data that should be supplied to the view. | |
array | extractPublicProperties() Extract the public properties for the component. | |
array | extractPublicMethods() Extract the public methods for the component. | |
mixed | createVariableFromMethod(ReflectionMethod $method) Create a callable variable from the given method. | |
InvokableComponentVariable | createInvokableVariable(string $method) Create an invokable, toStringable variable for the given component method. | |
bool | shouldIgnore(string $name) Determine if the given property / method should be ignored. | |
array | ignoredMethods() Get the methods that should be ignored. | |
$this | withName(string $name) Set the component alias name. | |
$this | withAttributes(array $attributes) Set the extra attributes that the component should make available. | |
bool | shouldRender() Determine if the component should be rendered. |
Get the view / view contents that represent the component.
Resolve the Blade view or view file that should be used when rendering the component.
Create a Blade view with the raw component string content.
Get the data that should be supplied to the view.
Extract the public properties for the component.
Extract the public methods for the component.
Create a callable variable from the given method.
Create an invokable, toStringable variable for the given component method.
Determine if the given property / method should be ignored.
Get the methods that should be ignored.
Set the component alias name.
Set the extra attributes that the component should make available.
Determine if the component should be rendered.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/View/Component.html