diff --git a/src/CascadeSoftDeletes.php b/src/CascadeSoftDeletes.php index d97d5d0..105d380 100644 --- a/src/CascadeSoftDeletes.php +++ b/src/CascadeSoftDeletes.php @@ -117,7 +117,7 @@ protected function getCascadingDeletes() protected function getActiveCascadingDeletes() { return array_filter($this->getCascadingDeletes(), function ($relationship) { - return ! is_null($this->{$relationship}); + return $this->{$relationship}()->exists(); }); } }