block sag

This commit is contained in:
Afiq
2022-02-27 23:59:16 +08:00
parent 04716a2a45
commit 955328c35e
46 changed files with 1567 additions and 1562 deletions
+2 -2
View File
@@ -17,8 +17,8 @@ class HargaEmasController extends Controller
public function index(){
$auth_user = Auth::user();
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$harga_emas = Http::get(config('api.url') . '/api/harga_emas')->json();
$cawangan_info = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
$harga_emas = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/harga_emas')->json();
return view('harga_emas.index',compact('harga_emas','cawangan_info'));
}
}