ManagesLoops (View\Concerns)

ManagesLoops

trait ManagesLoops (View source)

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.

Parameters

Countable|array $data

Return Value

void

void incrementLoopIndices()

Increment the top loop's indices.

Return Value

void

void popLoop()

Pop a loop from the top of the loop stack.

Return Value

void

stdClass|null getLastLoop()

Get an instance of the last loop in the stack.

Return Value

stdClass|null

array getLoopStack()

Get the entire loop stack.

Return Value

array

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/View/Concerns/ManagesLoops.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部