$collection->findBy()
Find a single element by an attribute and its value
Parameters
| Name | Type | Default |
|---|---|---|
| $attribute * | string |
– |
| $value * | mixed |
– |
Return type
mixed|null
Find a single element by an attribute and its value
| Name | Type | Default |
|---|---|---|
| $attribute * | string |
– |
| $value * | mixed |
– |
mixed|null