cluster Posted September 29, 2023 Share Posted September 29, 2023 How can a sort order be added into Invoices report? I need to order (sort) by datepaid (Y,m, d) on generate report if ($datePaidRange) { $dateRange = Carbon::parseDateRangeValue($datePaidRange); $fromdate = $dateRange['from']->toDateTimeString(); $todate = $dateRange['to']->toDateTimeString(); $query->whereBetween('datepaid', [$fromdate, $todate]); } 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.