change recent

This commit is contained in:
hafifierahman
2021-01-12 11:46:12 +08:00
parent 80274522b3
commit 7ae83966f7
9 changed files with 213 additions and 7 deletions
+15 -1
View File
@@ -24,6 +24,20 @@ class PanjarController extends Controller
return response()->json($panjar);
}
public function listpanjar($kodcaw)
{
$harini = Carbon::now();
$harini = new Carbon;
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$panjar=Panjar::on($cawangan['mysql'])
->orderBy('recno','desc')
->first();
return response()->json($panjar);
}
public function listmulaakhir($kodcaw,$mula,$akhir)
{
@@ -59,7 +73,7 @@ class PanjarController extends Controller
return response()->json($kelulusan,201);
}
public function create(REQUEST $request,$kodcaw,$norujukan)
public function create(REQUEST $request,$kodcaw)
{
$harini = Carbon::now();
$harini = new Carbon;