You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using Laravel-Excel in a Nova action. I need to export a set of rows from a resource (always all of them, ignoring any current selection), but importantly, it needs to be prefixed with 4 rows of fixed data. I'm attempting to achieve this using FromCollection, as per the docs:
However, when I trigger the action, it downloads the data for the selected record(s) in my view in the default format, and the data returned from my collection() method is completely ignored and does not appear at all in the downloaded data.
How can I do a completely custom download of a collection that ignores the current selection?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using Laravel-Excel in a Nova action. I need to export a set of rows from a resource (always all of them, ignoring any current selection), but importantly, it needs to be prefixed with 4 rows of fixed data. I'm attempting to achieve this using
FromCollection
, as per the docs:However, when I trigger the action, it downloads the data for the selected record(s) in my view in the default format, and the data returned from my
collection()
method is completely ignored and does not appear at all in the downloaded data.How can I do a completely custom download of a collection that ignores the current selection?
Beta Was this translation helpful? Give feedback.
All reactions