Search

Laravel Miscellaneous Helper Function: data_get

November 21, 2016 —John Koster

data_get($target, $key, $default = null)

The data_get function is identical in behavior to both the array_get and object_get function. The difference is that the data_get function will accept both objects and arrays as its $target.