peti besi list

This commit is contained in:
hafifierahman
2021-02-27 10:58:10 +08:00
parent 05c3265f59
commit 375cffad41
2 changed files with 11 additions and 0 deletions
+10
View File
@@ -29,6 +29,16 @@ class VaultController extends Controller
}
public function listall($kodcaw)
{
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$vault=Vault::on($cawangan['mysql'])
->where('kodcaw','=',$kodcaw)
->orderby('tarikh','desc')->get();
return response()->json($vault);
}
public function updateVault($kodcaw, Request $request)
{
$current = Carbon::now();