Skip to content

Commit aeea2ef

Browse files
committed
docs: with header
1 parent ee78029 commit aeea2ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,9 +144,10 @@ Using `withHeaders` will skip the first row of the CSV file.
144144
145145
> [!IMPORTANT]
146146
> 1. `withHeaders` must be called before the `into` method.
147-
> 2. This method assumes that the headers are the same as the columns. Non existent columns will be set as FILLER.
148-
> 3. If the headers are different from the columns, you should define the `columns` in the `into` method.
149-
> 4. This works well with the Eloquent Collection as the data source and saving it to a CSV file for bulk import.
147+
> 2. This method assumes that the headers are the same as the table columns.
148+
> 3. Non-existent columns will be flagged as `FILLER`.
149+
> 4. Date headers will be automatically detected and data type is appended as `DATE`. values must follow the default date format.
150+
> 5. If the headers are different from the table columns, you should define the `columns` in the `into` method.
150151
151152
#### Building a CSV File from Eloquent Collection
152153

0 commit comments

Comments
 (0)