$count=Ship::where("updated_at",">", "2024-01-01 00:00:00")->count();
$skip=0;
$take=10;
while ($count>0){
$count=$count-$skip;
$dem=Ship::where("updated_at",">", "2024-01-01 00:00:00")
->skip($skip)
->take($take)->get();
foreach ($dem as $item){
}
$skip= $skip+$take;
}
$dem=Ship::where("updated_at",">", "2024-01-01 00:00:00")->get();
foreach ($dem as $item){
}