Laravel Collection Public API: flatten
…p 2 3 use Illuminate \ Support \ Collection ; 4 5 // Create a new collection instance. 6 $ collection = new Collection ( [ 7 ' first ' , 8 ' second ' => [ 9 ' nested ' , 10 ' array ' , 11 [ 12 ' deeply ' , 13 ' nested ' 14 ] 15 ] , 16 ' third '...