fix laporan

This commit is contained in:
hafifierahman
2021-10-18 11:02:27 +08:00
parent 6706de0753
commit d2c4d15d51
4 changed files with 52 additions and 0 deletions
@@ -106,4 +106,17 @@ class HargaEmasController extends Controller
}
return response()->json($hargaemas);
}
public function laporanhargaemas(Request $request)
{
$rekod = HistoryEmasSandaran::on('mysql7')
->where('t_efektif','>=',$request->mula)
->where('t_efektif','<=',$request->hingga)
->orderBy('t_efektif','desc')
->orderBy('m_efektif','desc')
->get();
return response()->json($rekod);
}
}