Laravel Array Helper Function: array_prepend (Easily Add an Item to the Beginning of an Array)
The prepend helper method allows you to add a value to the beginning of an array. You can optionally specify a key for the new item if the array is associative. The method returns a new modified copy of the original array, leaving the original unchanged. Additionally, there is a shortcut array_prepend helper function available in the global namespace that...