Laravel 5 Collections: Creating a Copy of a Collection With toBase
The toBase method will return a new collection instance containing all of the data in the current collection instance. This can be useful for method chaining when you need to modify the collection's contents without changing the original...