Laravel Collection Public API: unique
…ring 'A' (length=1) 6 2 => string 'b' (length=1) 7 3 => string 'c' (length=1) 8 4 => int 1 9 6 => int 2 10 7 => int 3 The following code sample demonstrates how to use the unique method to get all the unique items in a collection based on a given...