title: Don't paginate the results
body: <p>The following is the query I am using to get the results from the database. As you can see it has a chain paginate. I don't want my results to be paginated. </p>
  
  <pre><code>return DB::table('example')-&gt;where('status', '1')-&gt;orderBy('name', 'desc')-&gt;paginate(50);
  </code></pre>
  
  <p>When I remove the method <code>paginate</code>.</p>
  
  <pre><code>return DB::table('example')-&gt;where('status', '1')-&gt;orderBy('name', 'desc');
  </code></pre>
  
  <p>I get the following error message.</p>
  
  <blockquote>
    <p>Object of class Illuminate\Database\Query\Builder could not be
    converted to string</p>
  </blockquote>
  
  <p>How can I do that?</p>