remove unused method restoring, restored of trait SoftDeletes

these two methods will cause crash because of registerModelEvent doesn't exist
This commit is contained in:
YorkGu 2019-09-03 23:39:41 +08:00 committed by York.GU
parent 1c3091af7d
commit a667fe6d3d

View File

@ -89,26 +89,6 @@ trait SoftDeletes
return ! is_null($this->{$this->getDeletedAtColumn()});
}
/**
* Register a restoring model event with the dispatcher.
*
* @param \Closure|string $callback
*/
public static function restoring($callback)
{
static::registerModelEvent('restoring', $callback);
}
/**
* Register a restored model event with the dispatcher.
*
* @param \Closure|string $callback
*/
public static function restored($callback)
{
static::registerModelEvent('restored', $callback);
}
/**
* Determine if the model is currently force deleting.
*