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