diff --git a/src/Illuminate/Support/helpers.php b/src/Illuminate/Support/helpers.php index 05c878820f64..05ea9da94c30 100755 --- a/src/Illuminate/Support/helpers.php +++ b/src/Illuminate/Support/helpers.php @@ -463,7 +463,11 @@ function data_get($target, $key, $default = null) return value($default); } - $result = Arr::pluck($target, $key); + $result = []; + + foreach ($target as $item) { + $result[] = data_get($item, $key); + } return in_array('*', $key) ? Arr::collapse($result) : $result; }