Skip to content

Commit f7c9ab5

Browse files
committed
docs: caution
1 parent dbecdf4 commit f7c9ab5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,9 @@ $loader->into('employees', ['name', 'dept_id']);
142142
143143
Using `withHeaders` will skip the first row of the CSV file.
144144
145-
> **IMPORTANT**
145+
> [!CAUTION]
146146
> 1. `withHeaders` must be called before the `into` method.
147-
> 2. This method assumes that the headers are the same as the columns.
147+
> 2. This method assumes that the headers are the same as the columns. Non existent columns will be set as FILLER.
148148
> 3. If the headers are different from the columns, you should define the `columns` in the `into` method.
149149
> 4. This works well with the Eloquent Collection as the data source and saving it to a CSV file for bulk import.
150150
@@ -202,7 +202,7 @@ Jane Doe,2
202202
203203
In some cases, we need to insert constant values to the table. You can use the `constants` method to set the constant value.
204204
205-
> **IMPORTANT**
205+
> [!CAUTION]
206206
>`constants` must be called before the `into` method.
207207
208208
```php

0 commit comments

Comments
 (0)