阅读(2213)
赞(10)
Laravel 8 skip() {#collection-method}
2021-07-01 15:42:05 更新
skip
方法返回除了给定的元素数目的新集合:
$collection = collect([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]);
$collection = $collection->skip(4);
$collection->all();
// [5, 6, 7, 8, 9, 10]