diff --git a/src/Common/Widgets/MonthlyRevenueWidget.php b/src/Common/Widgets/MonthlyRevenueWidget.php index 0f409ba..d8aff0f 100644 --- a/src/Common/Widgets/MonthlyRevenueWidget.php +++ b/src/Common/Widgets/MonthlyRevenueWidget.php @@ -20,7 +20,7 @@ public function run($args) $dateFormat='%M %Y'; } else if ($connection === 'pgsql') { $dateFormatMethod = 'TO_CHAR'; - $dateFormat='MM-YY'; + $dateFormat="'MM-YY'"; } $data = Invoice::where('status', 'paid')->select(