Skip to content

Commit e33fa8e

Browse files
committed
2 parents 4f20f43 + 29de0c6 commit e33fa8e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ composer require bayareawebpro/laravel-simple-csv
2323

2424
## Usage:
2525

26+
Invokable classes can be passed to the import method allow you to customize
27+
how are processed. By default, none are applied.
28+
29+
Two classes to handle numerics and null values have
30+
been supplied and can be applied.
31+
2632
```php
2733
use BayAreaWebPro\SimpleCsv\SimpleCsv;
2834
use BayAreaWebPro\SimpleCsv\Casts\EmptyValuesToNull;
@@ -34,7 +40,10 @@ $lazyCsvCollection = SimpleCsv::import(storage_path('collection.csv'), [
3440
]);
3541
```
3642

37-
### Invokable Cast Classes
43+
### Invokable Classes
44+
45+
**Dependency Injection:** Invokable classes can typehint required dependencies in a
46+
constructor method when defined.
3847

3948
```php
4049
<?php declare(strict_types=1);

0 commit comments

Comments
 (0)