title: Too few arguments to function Illuminate\Support\Collection::get()
body: <p>I have the following error.</p>
  <blockquote>
  <p>Too few arguments to function Illuminate\Support\Collection::get()</p>
  </blockquote>
  <pre><code>public function upteamLogs(Request $request)
  {
      $logs = DB::table('upteam_product_logs');
  
      if ($request-&gt;from_date != '' &amp;&amp; $request-&gt;to_date != '') {
          $logs-&gt;whereBetween('created_at', 
              array($request-&gt;from_date, $request-&gt;to_date));
      }
  
      $logs-&gt;orderBy('id', 'desc')-&gt;paginate(30)-&gt;get();
      
      return view(&quot;product-inventory.upteam_logs&quot;, compact('logs'));
  }
  </code></pre>