Skip to content

Commit

Permalink
docs: caution
Browse files Browse the repository at this point in the history
  • Loading branch information
yajra committed Jun 5, 2024
1 parent dbecdf4 commit f7c9ab5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ $loader->into('employees', ['name', 'dept_id']);
Using `withHeaders` will skip the first row of the CSV file.
> **IMPORTANT**
> [!CAUTION]
> 1. `withHeaders` must be called before the `into` method.
> 2. This method assumes that the headers are the same as the columns.
> 2. This method assumes that the headers are the same as the columns. Non existent columns will be set as FILLER.
> 3. If the headers are different from the columns, you should define the `columns` in the `into` method.
> 4. This works well with the Eloquent Collection as the data source and saving it to a CSV file for bulk import.
Expand Down Expand Up @@ -202,7 +202,7 @@ Jane Doe,2
In some cases, we need to insert constant values to the table. You can use the `constants` method to set the constant value.
> **IMPORTANT**
> [!CAUTION]
>`constants` must be called before the `into` method.
```php
Expand Down

0 comments on commit f7c9ab5

Please sign in to comment.