title: Get only some fields from array in Laravel requests
body: <p>In input I have such an array:</p>
  
  <pre><code>array:1 [
    "prizes" =&gt; array:1 [
      1 =&gt; array:2 [
        "prize_id" =&gt; "1"
        "priority" =&gt; "1"
        "some_fields" =&gt; "some_value"
      ]
    ]
  ]
  </code></pre>
  
  <p>In controller, I try to get only two fields:</p>
  
  <pre><code>$request-&gt;only([
     'prizes.*.priority',
     'prizes.*.prize_id'
  ]);
  </code></pre>
  
  <p>but i should get this:</p>
  
  <pre><code>array:1 [
    "prizes" =&gt; array:1 [
      "*" =&gt; array:2 [
        "priority" =&gt; array:1 [
          0 =&gt; "1"
        ]
        "prize_id" =&gt; array:1 [
          0 =&gt; "1"
        ]
      ]
    ]
  ]
  </code></pre>
  
  <p>How to get array with needed fields?</p>