title: How to remove query string page from the first page of laravel pagination?
body: <p>I'm using <a href="/questions/tagged/laravel-5.4" class="post-tag" title="show questions tagged &#39;laravel-5.4&#39;" rel="tag">laravel-5.4</a> pagination like the following:</p>
  
  <pre><code>public function index()
      {
          $jobs = Job::paginate(5);
          return view('job.index', compact('jobs'));
      }
  </code></pre>
  
  <p>In the view:</p>
  
  <pre><code>{{ $jobs-&gt;links() }}
  </code></pre>
  
  <p>There is a problem of generating two typical pages: <code>/job</code> and <code>/job?page=1</code> the two page has the same contents. </p>
  
  <p>I want to do anything that removes the query string <code>page</code> from the first page of the pagination.</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>if ($jobs-&gt;onFirstPage()){
    $jobs-&gt;setPageName('');
  } 
  </code></pre>
  
  <p>But this corrupt the pagination, i.e the links of pages does not load correctly and the query string value remains for all pages.</p>