trait Illuminate / View / Concerns / ManagesLoops
You are viewing an older version of the documentation. For the latest, please visit master documentation.

ManagesLoops

Properties

protected

$loopsStack array

The stack of in-progress loops.

Default: []

Methods

public

addLoop ( $data ) : void

Add new loop to the stack.

Parameters

public

incrementLoopIndices ( ) : void

Increment the top loop's indices.

public

popLoop ( ) : void

Pop a loop from the top of the loop stack.

public

getLastLoop ( ) : stdClass|null

Get an instance of the last loop in the stack.

public

getLoopStack ( ) : array

Get the entire loop stack.