diff --git a/src/DatesFunctions.php b/src/DatesFunctions.php index 5fa3043..457c246 100644 --- a/src/DatesFunctions.php +++ b/src/DatesFunctions.php @@ -91,7 +91,7 @@ protected function formatDateColumn(): string return match ($driver) { 'mysql' => "date($this->dateColumn)", 'pgsql' => "TO_CHAR($this->dateColumn, 'YYYY-MM-DD')", - 'default' => "strftime('%Y-%m-%d', $this->dateColumn)", + default => "strftime('%Y-%m-%d', $this->dateColumn)", }; } @@ -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;