Using data_set With Objects | Laravel 5: Setting Array or Object Values With data_set
There is no difference in using the data_set helper function with objects instead of arrays. The following example demonstrates how we could use the data_set function fill a newly created object. The example does not handle nested items. 1 //...