/** * API to fetch not-provisioned IP addresses */ public function fetchUnusedIps() { return IpAddress::notProvisioned(); }
/** * Get the next available management IP */ public function nextAvailableManagementIp() { $ips = IpAddress::notProvisioned(); return $ips->where('is_management', true)->first(); }