class
Illuminate
/
View
/
ComponentSlot
ComponentSlot
Implements
Properties
protected
$contents string
The slot contents.
Default: null
Methods
public
__construct ( $contents , $attributes ) : void
Create a new slot instance.
Parameters
- $contents string
- $attributes array
public
withAttributes ( array $attributes ) : $this
Set the extra attributes that the slot should make available.
Parameters
- $attributes array
public
toHtml ( ) : string
Get the slot's HTML string.
public
isEmpty ( ) : bool
Determine if the slot is empty.
public
isNotEmpty ( ) : bool
Determine if the slot is not empty.
public
__toString ( ) : string
Get the slot's HTML string.