mardi 3 janvier 2017

NotFoundHttpException paginate Array

i want paginate a array with LengthAwarePaginator in Laravel.

when i try navigate between pages, laravel show this error:

NotFoundHttpException in RouteCollection.php line 161

mi code are:

 //$queries1 is an array.
 $queries = new Paginator($queries1, count($queries1), 4);
  //configure Path
    $queries->setPath(App::getLocale().'/activity/search_Activity');
    return view(App::getLocale().'.activities.ActivityResults', ['results' => $queries]);

if i try don´t set the path, the link of the pagination, automatically redirect to '/'

What could be happening?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2iFHIWm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire