title: Return results of query as array in laravel
body: <p>i have this code</p>
  <pre><code>**$datas=DB::table('uni_staff')
  -&gt;join('department','uni_staff.department_id','department.id')
  -&gt;join('uni_staff_type','uni_staff.type_id','uni_staff_type.id')
  -&gt;select('uni_staff.*','department.dep_name as departmentName' , 'uni_staff_type.user_type as 
    typeName')
  -&gt;where('uni_staff.id',$id)
  -&gt;select('uni_staff.*')
  -&gt;get();**
  </code></pre>
  <p>I want to put every column value of a row to an indexed array , or print the result by column index like or something else ' $datas[0] ' not column names like ' $datas-&gt;id '</p>