Laravel 5: Reducing a Multi-Dimensional Array to a Single Dimension Losing Keys With flatten
The flatten helper method is similar to the dot method in that it takes a multi-dimensional array and transforms it into a new array with only one dimension. While the dot method preserves the keys by separating them with dots , the flatten method...