📜  laravel like foreach - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:23.893000             🧑  作者: Mango

代码示例1
use App\Models\Flight;

Flight::chunk(200, function ($flights) {
    foreach ($flights as $flight) {
        //
    }
});