Skip to content

Commit 3c767d2

Browse files
committed
Adds a missing method
1 parent 351bc7d commit 3c767d2

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/Support/FieldTransformer.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -769,6 +769,25 @@ protected function setValidationProperty(Field & $field, array $properties)
769769
return $this;
770770
}
771771

772+
/**
773+
* It set the options property for a giving field
774+
*
775+
* @param array $values
776+
* @param string $search
777+
*
778+
* @return bool
779+
*/
780+
protected function inArraySearch(array $values, $search)
781+
{
782+
foreach ($values as $value) {
783+
if(str_is($search . '*', $value)){
784+
return true;
785+
}
786+
}
787+
788+
return false;
789+
}
790+
772791
/**
773792
* It set the options property for a giving field
774793
*

0 commit comments

Comments
 (0)