Myślę, że musisz użyć quarter_year
najpierw tak:
$last_figures = QuarterData::where('company_id', '=', $company->id)
->orderBy('quarter_year')->orderBy('quarter_number')->get();
Myślę, że musisz użyć quarter_year
najpierw tak:
$last_figures = QuarterData::where('company_id', '=', $company->id)
->orderBy('quarter_year')->orderBy('quarter_number')->get();