title: Laravel pagination Error
body: <p>I want to paginate a array with LengthAwarePaginator in Laravel.</p>
  
  <p>When I try navigate between pages, laravel shows this error:</p>
  
  <pre><code>NotFoundHttpException in RouteCollection.php line 161
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code> //$queries1 is an array.
      $currentPage = LengthAwarePaginator::resolveCurrentPage();
      $collection = new Collection($queries1);
      $currentPageSearchResults = $collection-&gt;slice($currentPage * 5, 5)-&gt;all();
      $paginatedSearchResults= new LengthAwarePaginator($currentPageSearchResults, count($collection), 5);
  
      //configure Path
      $paginatedSearchResults-&gt;setPath(App::getLocale().'/activity/search_Activity');
  
      return view(App::getLocale().'.activities.ActivityResults', ['results' =&gt; $paginatedSearchResults]);
  </code></pre>
  
  <p>If I don't set the path, the link of the pagination, automatically redirect to '/'</p>
  
  <p>What could be happening?</p>
  
  <p>Thanks for help</p>