title: Laravel 5.2 Query Builder get as a single array(not 2D or 3D)
body: <p>This is my query. </p>
  
  <pre><code>$mem = DB::table('user_zakathorg')
         -&gt;JOIN('zakathorgs', 'user_zakathorg.zakathorg_id', '=', 'zakathorgs.ID')
         -&gt;WHERE('user_id', '=', Auth::user()-&gt;id )
         -&gt;SELECT('zakathorg_id', 'orgName')-&gt;get();
  </code></pre>
  
  <p>And the output is always one raw. like following image</p>
  
  <p><a href="https://i.stack.imgur.com/CbPpG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CbPpG.png" alt="enter image description here"></a></p>
  
  <p>If i want to accesss the <strong>zakathorg_id</strong>. I have to use a foreach loop. And I can't access   </p>
  
  <p><code>$mem[0]['zakathorg_id]</code>  </p>
  
  <p>how can i use this as simply <code>$mem['zakathorg_id']</code> </p>