make() ->each(function (Encart $encart) use ($tabEncarts, &$i): void { $encart->page = $tabEncarts[$i++]->value; $encart->save(); }); } }