diff --git a/src/Services/Listings/Columns/Relation.php b/src/Services/Listings/Columns/Relation.php index 9c6c05ec7..cf6e7769e 100644 --- a/src/Services/Listings/Columns/Relation.php +++ b/src/Services/Listings/Columns/Relation.php @@ -46,7 +46,8 @@ protected function getRenderValue(TwillModelContract $model): string /** @var \Illuminate\Database\Eloquent\Collection $relation */ $model->loadMissing($this->relation); - $relation = collect($model->getRelation($this->relation)); + $relation = $model->getRelation($this->relation); + if(!$relation instanceof \Illuminate\Database\Eloquent\Collection) $relation = collect([$relation]); return $relation->pluck($this->field)->join(', '); }