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