Laravel Collection Public API: forget
forget($key) The forget method removes an item from the collection based on given $key . The forget method returns a reference to the original collection, meaning it modifies the collection instance it was called on. The following code example...