We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4772fa7 commit 529b256Copy full SHA for 529b256
app/Http/Controllers/Backend/Invoice/ReportController.php
@@ -21,7 +21,7 @@ function index(string $type)
21
})
22
->latest()->paginate(paginateCount());
23
$fiscalYear = currentFiscalYear();
24
- $fiscalYears = FiscalYear::latest()->take(3)->latest()->get()->reverse();
+ $fiscalYears = FiscalYear::latest('year')->limit(3)->get()->reverse();
25
return view('backend.report.index', compact('invoices', 'fiscalYear', 'fiscalYears', 'type'));
26
}
27
function ledger(Request $request)
0 commit comments