Код: Выделить всё
public function importar()
{
$path = 'public/excel/excelinvitaciones.xlsx';
Excel::filter('chunk')->load($path)->chunk(250, function($results)
{
$invitacion = new PuertoInvitacion();
for ($i=0; $i "1" , "telefono" => $results[$i][0]];
$invitacion->crearNueva($arrayInvitacion);
}
});
}
Код: Выделить всё
A1
416723123
414123723
412123123
Код: Выделить всё
id idpuerto telefono
1 1 [414123723]
Подробнее здесь: https://stackoverflow.com/questions/324 ... vel-result
Мобильная версия