title: Laravel withQueryString does not exist after calling paginate method on query builder
body: <blockquote>
  <p>Method Illuminate\Database\Eloquent\Collection::withQueryString does
  not exist.</p>
  </blockquote>
  <p>when i write this code it gives this error</p>
  <p>blade;</p>
  <pre><code>&lt;div class=&quot;float-right&quot;&gt;{{ $modeller-&gt;withQueryString()-&gt;links()}}&lt;/div&gt;
  </code></pre>
  <p>controller;</p>
  <pre><code>public function index(){
  
      $modeller = Modeller::query();
      $koleksiyonlar = Koleksiyon::all();
      $modelistler = Modelist::all();
      $uretim_sorumlulari = Uretim_sorumlusu::all();
  
      if(request('model_kodu')){
          
          $modeller = $modeller-&gt;where('ModelKodu', 'LIKE', &quot;%&quot;.request('model_kodu').&quot;%&quot;);
      }
      if(request('koleksiyon_id')){
  
          $modeller = $modeller-&gt;where('koleksiyon_id', 'LIKE', &quot;%&quot;.request('koleksiyon_id').&quot;%&quot;);
      }
      if(request('uretim_sorumlusu_id')){
  
          $modeller = $modeller-&gt;where('UretimSor', 'LIKE', &quot;%&quot;.request('uretim_sorumlusu_id').&quot;%&quot;);
      }if(request('modelist_id')){
  
      $modeller = $modeller-&gt;where('modelist_id', 'LIKE', &quot;%&quot;.request('modelist_id').&quot;%&quot;);
  }
  
      $modeller = $modeller-&gt;paginate(18);
  
  
      return view('kumas.index',compact('modeller','koleksiyonlar','modelistler','uretim_sorumlulari'));
  }
  </code></pre>