kaunter baru

This commit is contained in:
hafifierahman
2020-12-05 21:25:00 +08:00
parent 1d0b02a911
commit 9218d2a916
3 changed files with 204 additions and 0 deletions
@@ -152,4 +152,14 @@ class CustomersController extends Controller
$response = Http::get('http://localhost:8000/api/customers');
dd($response->json());
}
public function getOTP()
{
$auth_user = Auth::user();
$api_url = config('api.url');
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
return view('onetimepassword.home',compact('cawangan_info','api_url'));
}
}