diff --git a/src/Relations/BelongsToManySoft.php b/src/Relations/BelongsToManySoft.php index 800f77d..9ce27c6 100644 --- a/src/Relations/BelongsToManySoft.php +++ b/src/Relations/BelongsToManySoft.php @@ -132,7 +132,7 @@ protected function performJoin($query = null) $query->join($this->table, $key, '=', $this->getQualifiedRelatedPivotKeyName()); $query->when($this->withSoftDeletes, function (Builder $query) { - $query->whereNull($this->deletedAt()); + $query->whereNull($this->getQualifiedDeletedAtColumnName()); }); return $this;