count()count方法返回集合中所有项的数目:$collection = collect([1, 2, 3, 4]);$collection->count();// 4forPage()forPage方法返回新的包含给定页数数据项的集合:$collectio...
count()count方法返回集合中所有项的数目:$collection = collect([1, 2, 3, 4]);$collection->count();// 4forPage()forPage方法返回新的包含给定页数数据项的集合:$collectio...