Skip to content

Commit 296cf13

Browse files
committed
SIP-481 - changed the save-command to a saveQuietly
1 parent 3bf379e commit 296cf13

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Models/Concerns/IsLockable.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function lock(Authenticatable|string|int|null $user = null, bool $save =
5757
$this->attributes['locked_by'] = $this->lockingUserIdentifier($user);
5858
$this->attributes['locked_at'] = Carbon::now();
5959

60-
if ($save) $this->save();
60+
if ($save) $this->saveQuietly();
6161

6262
return $this;
6363
}
@@ -93,7 +93,7 @@ public function unlockForced(bool $save = true): self
9393
$this->attributes['locked_by'] = null;
9494
$this->attributes['locked_at'] = null;
9595

96-
if ($save) $this->save();
96+
if ($save) $this->saveQuietly();
9797

9898
return $this;
9999
}

0 commit comments

Comments
 (0)