class
Illuminate
/
View
/
AnonymousComponent
You are viewing an older version of the documentation. For the latest, please visit master documentation.
AnonymousComponent
Extends
Properties
protected
$view string
The component view.
Default: null
protected
$data array
The component data.
Default: []
Methods
public
__construct ( $view , $data ) : void
Create a new anonymous component instance.
Parameters
- $view string
- $data array
public
render ( ) : string
Get the view / view contents that represent the component.
public
data ( ) : array
Get the data that should be supplied to the view.