$collection->not()
Returns a Collection without the given element(s)
$collection->not(object|array|string ...$keys): Collection
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| ...$keys | objectorarrayorstring |
no default value | Any number of keys, objects or collections, as individual arguments or in arrays |
Return type
This method does not modify the existing $collection object but returns a new object with the changes applied. Learn more →