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