Skip to content

Commit

Permalink
refactor: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aydinfatih committed Mar 14, 2024
1 parent 6167a2d commit 808f0a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,17 @@ delete_config('key');
read_nested('foo.bar');
```

### Custom Casters
You can also custom casters:

```php
$config = factory(Config::class)->create([
'name' => 'custom-cast-config-name',
'val' => [ConfigDataType::DATE],
'type' => AsEnumCollection::class.':'.ConfigDataType::class,
]);
```

### Testing

``` bash
Expand Down

0 comments on commit 808f0a8

Please sign in to comment.