param = $history; } public function index(Request $request) { $tgl = is_null($request->tanggal) ? now()->format("Y-m") : $request->tanggal; $history = $this->param->getHistory($tgl); return $this->okApiResponse($history, "Berhasil get History"); } }