diff --git a/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php b/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php index 80b202cbce79..ce36ea5c2fee 100644 --- a/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php +++ b/src/Illuminate/Database/Eloquent/Relations/MorphPivot.php @@ -45,11 +45,17 @@ protected function setKeysForSaveQuery(Builder $query) */ public function delete() { + if ($this->fireModelEvent('deleting') === false) { + return 0; + } + $query = $this->getDeleteQuery(); $query->where($this->morphType, $this->morphClass); - return $query->delete(); + return tap($query->delete(), function () { + $this->fireModelEvent('deleted', false); + }); } /**