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

Commit ca7dadf

Browse files
committed
add default id
1 parent 8825650 commit ca7dadf

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-
: [];
25+
: ['id'];
2626

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

0 commit comments

Comments
 (0)