Unnecessary blank space while created_at, updated_at, deleted_at doesn't included in headings #4175
timotiushadi
started this conversation in
General
Replies: 1 comment 1 reply
-
https://docs.laravel-excel.com/3.1/exports/mapping.html#mapping-data |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Been reviewing some ways to configure out what's happen, yet still don't know if this by default or not.
So, I want to export a table, e.g Presence. In my table, I have a few field like hours_work, path and so on after these 3 fields: created_at, updated_at, deleted_at.
In headings function, I didn't set those 3 fields to go with in first row. Then I download in .xlsx, all going okay until it reached those 3 fields.
In 1st row, it looks like this: id, date_in, time_in, time_out, hours_work
but in 2nd row: 1, 31/07/24, 08:00:00, 16:00:00, blank, blank, blank, 6
Its giving me a blank column with null or no value. Looks like by default this is the reserve space for those 3 fields. How can I fix this?
Preview:
.xlsx:
vscode:
table:
Beta Was this translation helpful? Give feedback.
All reactions