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

Commit cbd8d3d

Browse files
committed
add password key to ignore
1 parent 5804d6f commit cbd8d3d

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
@@ -19,7 +19,7 @@ public function mapModelAttributes(?Model $model = null): void
1919
{
2020
if (! is_null($model)) {
2121
collect($model->getAttributes())
22-
->except('id')
22+
->except('id', 'password')
2323
->each(function ($value, $property) use ($model) {
2424
if (property_exists($this, $property)) {
2525
rescue(

0 commit comments

Comments
 (0)