Skip to content
This repository was archived by the owner on Mar 12, 2024. It is now read-only.

Commit 8bb10e6

Browse files
committed
semantics in readme
1 parent 0903fe2 commit 8bb10e6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,21 @@ $this->propertiesFrom($model);
3333

3434
Assign array key values to class properties:
3535
```php
36-
$this->propertiesFrom($this->data);
36+
$this->propertiesFrom($array);
3737
```
3838

39-
## Logging
40-
As the package doesn't throw an error in case of failed assignment (for example type incompatibility), you may wish to log such an event. The package has failed assignment logging disabled by default, but you can turn it on by publishing the config:
39+
## Ignored property names
40+
By default, the package ignores `id` and `password` properties to avoid conflicts in Livewire/auth components.
41+
You can customize the ignore list by editing the config.
4142

4243
```bash
4344
php artisan vendor:publish --tag="loop-functions-config"
4445
```
4546

47+
## Logging
48+
As the package doesn't throw an exception in case of failed assignment (e.g. type incompatibility) but logs such an event.
49+
You can disable logging for failed assignments if you wish so in the config.
50+
4651
## Testing
4752
```bash
4853
composer test

0 commit comments

Comments
 (0)