Skip to content

Commit

Permalink
fix model disable bug
Browse files Browse the repository at this point in the history
  • Loading branch information
catplanet committed May 20, 2020
1 parent edc7560 commit 461b4d5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Framework/BaseModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ public function updateData(array $data)

public function disable()
{
$this->fill([
'enable' => SoftDeleted::DISABLE
]);
$this->enable = SoftDeleted::DISABLE;
return $this->save();
}

Expand Down

0 comments on commit 461b4d5

Please # to comment.