rap2hpoutre / fast-excel

🦉 Fast Excel import/export for Laravel
MIT License
2.09k stars 246 forks source link

Fields lost on duplicate header names with import #274

Closed fidderr closed 2 years ago

fidderr commented 2 years ago

doesntWork.xlsx

$users = (new FastExcel)->import($file, function ($line) { Debugbar::info($line); });

instead of getting a proper array, it loses all values except for the last occurance. a option to make it count progressively. (Name, Name 2, Name 3, Number, Number 2)

rap2hpoutre commented 2 years ago

Unfortunately, this package does not work for excel that have duplicate headers. I suggest using laravel excel if you need more features.