Laravel Collection Public API: merge
The merge method in Laravel allows you to combine the items in a collection with other items. If a string key with the same value already exists in the collection, it will be replaced. Numeric keys in the new items will be added to the end of the collection. You can pass an array or another Collection instance to the...