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