控制器
$collections = $questions->split(5);
$collections->toArray();
dd($collections);
DD
Collection {#455 ▼
#items: array:5 [▼
0 => Collection {#394 ▶}
1 => Collection {#619 ▶}
2 => Collection {#407 ▶}
3 => Collection {#398 ▶}
4 => Collection {#275 ▶}
]
}
查看
我在div
View
打印馆藏。然后如何通过集合收集打印它们。
问题是如何:collection
按collection
答案 0 :(得分:1)
@foreach($collections[0] as $collection)