diff --git a/src/Relations/BelongsToThrough.php b/src/Relations/BelongsToThrough.php index 0ae7811..1ac54cf 100644 --- a/src/Relations/BelongsToThrough.php +++ b/src/Relations/BelongsToThrough.php @@ -142,6 +142,7 @@ protected function setSoftDeletes() if ($model === $this->parent) { continue; } + if ($this->hasSoftDeletes($model)) { $this->query->whereNull($model->getQualifiedDeletedAtColumn()); }