trait Illuminate / View / Concerns / ManagesLoops

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.