$collection->remove()
Removes an object
$collection->remove(string|mixed $key): Collection
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $keyrequired | stringormixed |
no default value | Key or object to remove |
Return type
This method modifies the existing $collection object it is applied to and returns it again.