Working With Nested Arrays or Objects | Laravel 5: Retrieving Nested Array Values With pluck
The $key supports dot notation, which implies that we can search for keys at arbitrary depths when constructing the final array. Let's add a new Job class, which will just be a very simple representation of a job: 1 class Job { 2 3 public $ name =...