trait
Illuminate
/
View
/
Concerns
/
ManagesFragments
ManagesFragments
Properties
protected
$fragments array
All of the captured, rendered fragments.
Default: []
protected
$fragmentStack array
The stack of in-progress fragment renders.
Default: []
Methods
public
startFragment ( $fragment ) : void
Start injecting content into a fragment.
Parameters
- $fragment string
public
stopFragment ( ) : string
Stop injecting content into a fragment.
public
getFragment ( $name , $default ) : mixed
Get the contents of a fragment.
Parameters
- $name string
- $default string|null
public
getFragments ( ) : array
Get the entire array of rendered fragments.
public
flushFragments ( ) : void
Flush all of the fragments.