title: get one Array from Arrays
body: <p>in controller I have array <strong>$checked</strong></p>
  <pre><code>array:4 [▼
    0 =&gt; &quot;3&quot;
    1 =&gt; &quot;4&quot;
    2 =&gt; &quot;5&quot;
    3 =&gt; &quot;8&quot;
  ]
  </code></pre>
  <p>from base I want get second array, like this, but cannot:</p>
  <pre><code>$proservices = Proservice::whereIn('service_id', $checked)-&gt;get('product_id')-&gt;toArray();
  </code></pre>
  <p>it gives me 2 arrays:</p>
  <pre><code>array:3 [▼
    0 =&gt; array:1 [▼
      &quot;product_id&quot; =&gt; 14
    ]
    1 =&gt; array:1 [▼
      &quot;product_id&quot; =&gt; 7
    ]
    2 =&gt; array:1 [▼
      &quot;product_id&quot; =&gt; 14
    ]
  ]
  </code></pre>
  <p>help me to get array like this:</p>
  <pre><code>array:2 [▼
    0 =&gt; &quot;14&quot;
    1 =&gt; &quot;7&quot;
  ]
  </code></pre>