title: laravel 5.4 LengthAwarePaginator lose pages results
body: <p>I'm using the LengthAwarePaginator to paginate the results of my collection,</p>
  
  <pre><code>$all_products = $all_products-&gt;where('scat_id', $sub_category);
  $products = $this-&gt;manuallyPaginate($all_products);
  </code></pre>
  
  <p>all_products its the collection of my products, then I used the laravel where method to filtrate, after that manuallyPaginate its executed</p>
  
  <pre><code>private function manuallyPaginate($array){
  
      $total = count($array);
      $perPage = 15;
      $currentPage = Input::get('page', 1);
      $paginator = new LengthAwarePaginator($array, 
          $total, 
          $perPage, 
          $currentPage,
          ['path'  =&gt; url()-&gt;current()]
      );
  
      return $paginator;
  }
  </code></pre>
  
  <p>This works, but all products are shown in every page instead of 15 per page.
  am I missing a parameter to LengthAwarePaginator method? </p>