What is a Laravel collection? what is a difference between a PHP array and a Laravel collection?
It seems collections are very similar to arrays. For example, result retrieved via the
get() method is a collection of data. But when we want to use it as an array we must use
toArray() method. Why?