Skip to content

Commit

Permalink
Update Model save() to return true on non-error (#15236)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrushton authored and taylorotwell committed Sep 2, 2016
1 parent 4495d0c commit e416c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -1462,7 +1462,7 @@ public function save(array $options = [])
// clause to only update this model. Otherwise, we'll just insert them.
if ($this->exists) {
$saved = $this->isDirty() ?
$this->performUpdate($query) : false;
$this->performUpdate($query) : true;
}

// If the model is brand new, we'll insert it into our database and set the
Expand Down

0 comments on commit e416c40

Please sign in to comment.