Laravel Array Helper Function: array_flatten
Learn how to flatten multi-dimensional arrays with the flatten helper method in PHP. While the dot method preserves keys using dots, the flatten method creates a new array without the original keys. Use array_flatten as a shortcut to Arr::flatten in the global namespace.