Skip to content

Commit 461b4d5

Browse files
author
catplanet
committed
fix model disable bug
1 parent edc7560 commit 461b4d5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/Framework/BaseModel.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,7 @@ public function updateData(array $data)
5656

5757
public function disable()
5858
{
59-
$this->fill([
60-
'enable' => SoftDeleted::DISABLE
61-
]);
59+
$this->enable = SoftDeleted::DISABLE;
6260
return $this->save();
6361
}
6462

0 commit comments

Comments
 (0)