What is your question? Do you want them gone? Do you want another solution for this?
Mar 2, 2018
13
Level 1
Laravel Pagination has
Hello guys,
I am having a problem with the generated pagination. The pagination links are having ellipsis(...) and after those ellipsis, the page numbers seem to be showing the last 2 link pages of the pagination.
So the generated page links looks like this;
< | 1 | 2 | 3 | ... | 20 | 22 | >
Here is my code for the database paginating.
public function scopeBlogs($query, $limit = NULL){
$query->where('blog', 1)->whereNull('deletedby')->orderBy('createddate', 'desc');
if(!is_null($limit)){
return $query->paginate($limit);
}
return $query->get();
}
And on the front-end as usual I am calling the {{ $blogs->links() }}.
Here is the screenshot of the generated pagination on my project - https://www.dropbox.com/s/4vlxwf0as3kps2o/2018-03-05_0710.png?dl=0
Please or to participate in this conversation.