Skip to content

Pass id or name of current sheet in callback function in importSheets #366

@aatanasijevic

Description

@aatanasijevic

It would be good to have the current sheet id/name to the $callback arguments in the importSheets method. It can be useful for data validation messages, especially when you can have the same field names in different sheets. Something like:
if ($callback) { if ($result = $callback($sheet->getName(), empty($headers) ? $row : array_combine($headers, $row))) { $collection[] = $result; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions