File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff 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
2733use BayAreaWebPro\SimpleCsv\SimpleCsv;
2834use 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);
You can’t perform that action at this time.
0 commit comments