Laravel 5: Collapsing a Multi-Dimensional Array to a Single Level With collapse
The collapse helper method accepts an array as its only parameter. The given $array can be a single array, or a nested array. The method will then return a new array with the contents of all the nested arrays. Arrays that are collapsed can contain...