how to pass uploaded file to Laravel Excel to load the content into array or repeater
Hi ,
im having an action on table header to bulk upload from an Excel sheet, I'm trying to pass the uploaded file to Laravel Excel to get the content then i'll pass that array to form, I'm trying to pass the attachment to $array = Excel::toArray(new UsersImport, 'users.xlsx'); , So i was trying to do something like $array = Excel::toArray(new ChartOfAccountImport($this->record), $this->record->attachement);
so basically I want to know how to pass the file and which place to put that logic like is there is something like afterStep or AfterUpload event
1 Reply
Manage to get the Excel rows by the following, its not create but it working
`
Thanks @steen.rabol old message,