Skip to content

Commit

Permalink
Ability to determine if the model is force deleting.
Browse files Browse the repository at this point in the history
  • Loading branch information
kostaspt committed Sep 23, 2016
1 parent de8c117 commit 26c5b9e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/Database/Eloquent/SoftDeletes.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ public function trashed()
return ! is_null($this->{$this->getDeletedAtColumn()});
}

/**
* Determine if the model is currently force deleting.
*
* @return bool
*/
public function isForceDeleting()
{
return $this->forceDeleting;
}

/**
* Register a restoring model event with the dispatcher.
*
Expand Down

0 comments on commit 26c5b9e

Please sign in to comment.