Skip to content

Commit 0cfb3e4

Browse files
committed
Minor fix on BaseRepository
1 parent bd999b1 commit 0cfb3e4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Eloquent/BaseRepository.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,10 @@ public function update(array $attributes, int $id): mixed
243243
$this->applyScope();
244244

245245
$model = $this->model->findOrFail($id);
246+
246247
$model->fill($attributes);
247248
$model->save();
249+
$this->resetModel();
248250

249251
event(new RepositoryEntityUpdated($this, $model));
250252

0 commit comments

Comments
 (0)