branch aku jah deh
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user