ManagesLoops
trait ManagesLoops (View source)
Properties
protected array | $loopsStack | The stack of in-progress loops. |
Methods
void | addLoop(Countable|array $data) Add new loop to the stack. | |
void | incrementLoopIndices() Increment the top loop's indices. | |
void | popLoop() Pop a loop from the top of the loop stack. | |
stdClass|null | getLastLoop() Get an instance of the last loop in the stack. | |
array | getLoopStack() Get the entire loop stack. |
Details
void addLoop(Countable|array $data)
Add new loop to the stack.
void incrementLoopIndices()
Increment the top loop's indices.
void popLoop()
Pop a loop from the top of the loop stack.
stdClass|null getLastLoop()
Get an instance of the last loop in the stack.
array getLoopStack()
Get the entire loop stack.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/6.x/Illuminate/View/Concerns/ManagesLoops.html