title: Laravel Eloquent Pluck without losing the key
body: <p>I have the following collection in Laravel:</p>
  
  <pre><code> ["TheNumbers":[{"episodeID":16818,"episodeNumber":100,"created_at":null,"updated_at":null},{"episodeID":16818,"episodeNumber":210,"created_at":"2017-02-20 21:30:38","updated_at":"2017-02-20 21:30:38"}]
  </code></pre>
  
  <p>If I run the following code:</p>
  
  <pre><code>$TheEpisode-&gt;TheNumbers-&gt;pluck('episodeNumber');
  </code></pre>
  
  <p>I will get the following result:</p>
  
  <pre><code>[100,210]
  </code></pre>
  
  <p>I would like to keep the keys for each number, how can I achieve this?</p>
  
  <h1>EDIT: EXPECTED RESULT:</h1>
  
  <p>This is my expected result:</p>
  
  <pre><code>[{"episodeNumber":100},{"episodeNumber":210}]
  </code></pre>
  
  <h1>PHILIS PETERS (improved)</h1>
  
  <pre><code>TheEpisode-&gt;TheNumbers-&gt;reduce(function ($result, $episode) {
            $episodeData = (collect())-&gt;put('episodeNumber', $episode['episodeNumber']);
            $result[] = $episodeData;
            return $result;
          }));
  </code></pre>