Penso che tu debba usare il quarter_year
prima, in questo modo:
$last_figures = QuarterData::where('company_id', '=', $company->id)
->orderBy('quarter_year')->orderBy('quarter_number')->get();
Penso che tu debba usare il quarter_year
prima, in questo modo:
$last_figures = QuarterData::where('company_id', '=', $company->id)
->orderBy('quarter_year')->orderBy('quarter_number')->get();