show september sales report

This commit is contained in:
omair saleh
2021-10-06 21:38:03 +08:00
parent fbd108e8e8
commit 0dbdeba0d2
@@ -19,7 +19,7 @@ use Illuminate\Http\Request;
class MonthlyReportController
{
public function salesReport(Request $request): JsonResponse {
$today = Carbon::now();
$today = Carbon::now()->subMonth(1);
$containers = Container::whereMonth('loading_date', $today->format('m'))->whereYear('loading_date', $today->format('Y'))->orderBy('loading_date')->get();