Collection Laravel chacun
$collection = $collection->each(function ($item, $key) {
//
});
Cooperative Crab
$collection = $collection->each(function ($item, $key) {
//
});
collect([1, 2, 3, 4])->every(function ($value, $key) {
return $value > 2;
});
// false
$collection->each(function ($item, $key) {
hj
});