$collection->has()
Checks if the given object or id is in the collection
$collection->has(string|object $id): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $id * | string|object |
– |
Return type
bool
Checks if the given object or id is in the collection
$collection->has(string|object $id): bool
| Name | Type | Default |
|---|---|---|
| $id * | string|object |
– |
bool