v0.10.10b - Added small fixs to pagination

This commit is contained in:
2020-08-19 10:43:59 +02:00
parent 2f003600c5
commit a8fc584304
7 changed files with 19 additions and 3 deletions
@@ -26,7 +26,7 @@ class RootController extends Controller
}
}
else {
$news = News::query()->orderBy('id', 'asc')->paginate($perPage);
$news = News::query()->orderBy('id', 'asc')->paginate($perPage, ['*'], "page");
return view('app.root.index', ["news" => $news]);
}