Skip to content

Commit

Permalink
Fix SoftDeletes forceDelete return (#13272)
Browse files Browse the repository at this point in the history
  • Loading branch information
jn-jairo authored and taylorotwell committed Apr 25, 2016
1 parent d2dda6f commit 151ead9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Illuminate/Database/Eloquent/SoftDeletes.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,17 @@ public static function bootSoftDeletes()
/**
* Force a hard delete on a soft deleted model.
*
* @return void
* @return bool|null
*/
public function forceDelete()
{
$this->forceDeleting = true;

$this->delete();
$deleted = $this->delete();

$this->forceDeleting = false;

return $deleted;
}

/**
Expand Down

0 comments on commit 151ead9

Please sign in to comment.