Laravel Array Helper Function: array_set
The set helper method allows you to set values within an array using dot notation for the key. It is the opposite of the forget method. The set function mutates the original array and can be used to change the entire array or replace it with a different type. There is also a shortcut function called array_set available in the...