This commit is contained in:
Afiq
2021-01-03 10:08:02 +08:00
parent 1c11993b6f
commit be3f221201
3 changed files with 27 additions and 17 deletions
@@ -28,4 +28,13 @@ class HargaEmasController extends Controller
return response()->json($harga_emas, 200);
}
public function showAllHargaEmasMobile(){
$emas = HargaEmas::on('mysql7')->orderby('recno')->get();
$hargaemas = [];
foreach($emas as $index=>$harga){
array_push($hargaemas,['mutu_emas'=>$harga['keterangan'],'karat'=>$harga['karat'],'harga'=>$harga['harga']]);
}
return response()->json($hargaemas);
}
}