Component
Properties
$propertyCache array
The cache of public property names, keyed by class.
$methodCache array
The cache of public method names, keyed by class.
$except array
The properties / methods that should not be exposed to the component.
$componentName string
The component alias name.
Methods
render ( ) : View |Htmlable |Closure |string
Get the view / view contents that represent the component.
resolveView ( ) : View |Htmlable |Closure |string
Resolve the Blade view or view file that should be used when rendering the component.
createBladeViewFromString ( $factory , $contents ) : string
Create a Blade view with the raw component string content.
Parameters
- $factory Factory
- $contents string
data ( ) : array
Get the data that should be supplied to the view.
extractPublicProperties ( ) : array
Extract the public properties for the component.
extractPublicMethods ( ) : array
Extract the public methods for the component.
createVariableFromMethod ( ReflectionMethod $method ) : mixed
Create a callable variable from the given method.
Parameters
- $method ReflectionMethod
createInvokableVariable ( string $method ) : InvokableComponentVariable
Create an invokable, toStringable variable for the given component method.
Parameters
- $method string
shouldIgnore ( $name ) : bool
Determine if the given property / method should be ignored.
Parameters
- $name string
ignoredMethods ( ) : array
Get the methods that should be ignored.
withName ( $name ) : $this
Set the component alias name.
Parameters
- $name string
withAttributes ( array $attributes ) : $this
Set the extra attributes that the component should make available.
Parameters
- $attributes array
newAttributeBag ( array $attributes ) : ComponentAttributeBag
Get a new attribute bag instance.
Parameters
- $attributes array
shouldRender ( ) : bool
Determine if the component should be rendered.