📅  最后修改于: 2022-03-11 14:54:19.942000             🧑  作者: Mango
collect([2, 4, 3, 1, 5])
->sort()
->tap(function ($collection) {
Log::debug('Values after sorting', $collection->values()->toArray());
})
->shift();
// 1