protected function validateIp($attribute, $value) { return filter_var($value, FILTER_VALIDATE_IP) !== false; }