sheet('Customers') ->withHeaderRow(1) ->toArray([ 'skip_empty_rows' => true, 'max_rows' => 5000, ]); print_r($rows); } catch (MnbExcelException $error) { fwrite(STDERR, $error->getMessage() . PHP_EOL); exit(1); }