From 8ec67ac8635cf6e21c23511e7c4a58cb051b92d3 Mon Sep 17 00:00:00 2001 From: Dan Alvidrez Date: Sat, 15 Apr 2023 00:52:02 -0700 Subject: [PATCH] Update README.md --- README.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 11f7125..81bc493 100644 --- a/README.md +++ b/README.md @@ -23,6 +23,12 @@ composer require bayareawebpro/laravel-simple-csv ## Usage: +Invokable classes can be passed to the import method allow you to customize +how are processed. By default, none are applied. + +Two classes to handle numerics and null values have +been supplied and can be applied. + ```php use BayAreaWebPro\SimpleCsv\SimpleCsv; use BayAreaWebPro\SimpleCsv\Casts\EmptyValuesToNull; @@ -34,7 +40,10 @@ $lazyCsvCollection = SimpleCsv::import(storage_path('collection.csv'), [ ]); ``` -### Invokable Cast Classes +### Invokable Classes + +**Dependency Injection:** Invokable classes can typehint required dependencies in a +constructor method when defined. ```php