title: Eloquent ORM laravel 5 Get Array of ids
body: <p>I'm using Eloquent ORM laravel 5.1, and I want to return an array of ids greater than 0, my model is called <code>test</code>.</p>
  <p>I have tried :</p>
  <pre><code>$test=test::select('id')-&gt;where('id' ,'&gt;' ,0)-&gt;get()-&gt;toarray();
  </code></pre>
  <p>It returns :</p>
  <pre><code>Array ( [0] =&gt; Array ( [id] =&gt; 1 ) [1] =&gt; Array ( [id] =&gt; 2 ) )
  </code></pre>
  <p>But I want the result to be in simple array like this:</p>
  <pre><code>Array ( 1,2 )
  </code></pre>