fix laporan
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user