title: Call to a member function where() on array laravel 5.0.35
body: <p>I`m use </p>
  
  <pre><code>    public function getImages($array_symbols_id){
  
      $array_images  = DB::table('photo')
          -&gt;whereIn('photo_symbol_id', $array_symbols_id)
          -&gt;where('photo_moderation_id','2')
          -&gt;orderByRaw('RAND()')
          -&gt;get(['photo_id', 'photo_src', 'photo_symbol_id']);
  </code></pre>
  
  <p>then try</p>
  
  <pre><code>        $array = array();
  
      foreach ($array_symbols_id as $id) {
          $array[] = $array_images-&gt;where('photo_symbol_id', $id)-&gt;first()-&gt;photo_src;
      }
  </code></pre>
  
  <p>but i have exception Call to a member function where() on array.</p>
  
  <p>Why DB::table returns an array but not a collection?</p>
  
  <p>laravel v5.0.35</p>