$collection->without($args)

Returns a new collection without the given element(s)

  • $args (args)
    any number of keys, passed as individual arguments
  • return ($collection)

Alternative to $collection->not().