diff --git a/src/DatesFunctions.php b/src/DatesFunctions.php index d485e97..457c246 100644 --- a/src/DatesFunctions.php +++ b/src/DatesFunctions.php @@ -206,7 +206,7 @@ protected function getLabelsData(): array $result = []; $labelColumn = explode('.', $this->labelColumn)[1]; - $missingDataLabels = DB::table($this->builder->from)->get()->pluck($labelColumn)->toArray(); + $missingDataLabels = DB::table($this->table)->get()->pluck($labelColumn)->toArray(); foreach ($missingDataLabels as $label) { $result[$label] = $this->missingDataValue;