branch aku jah deh

This commit is contained in:
hafifierahman
2021-01-05 09:55:06 +08:00
parent b533e2de7d
commit c7704e0741
26 changed files with 3082 additions and 475 deletions
@@ -78,6 +78,18 @@ class CustomersController extends Controller
}
}
//Cari By IC No
public function cari(Request $request)
{
$api_url = config('api.url');
$customers_info = Http::get(config('api.url') . '/api/customers/'. $request->icno)->json();
if(sizeof($customers_info) > 0)
return $customers_info[0];
else
return "no-data";
}
/**
* Show the form for creating a new resource.
*