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

Commit 190d3e4

Browse files
committed
add password to default ignore list if config is broken
1 parent 2908343 commit 190d3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Traits/WithModelMapping.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function mapModelAttributes(?Model $model = null): void
2222

2323
$ignores = is_array($toIgnore)
2424
? $toIgnore
25-
: ['id'];
25+
: ['id', 'password'];
2626

2727
collect($model->getAttributes())
2828
->except($ignores)

0 commit comments

Comments
 (0)