Reputation: 1480
No idea what's going on here. However I am trying to user jScroll on a page, I successfully used it in another one but it's not working here. I noticed that the links generated by laravel are incomplete. They go something like this: < 1 3 4 5 6 7 >
if I got to page 3 then I get:
< 1 2 3 5 6 7 > etc.
The controller is doing a query like this:
$posts_with_comments = Post::with(['comments' => function ($query) {
$query->latest();
$query->with('author');
},
'user' => function ($q) {
$q->select('id', 'username');
},
'related_data'])
->where('user_id', $publisher->id)
->orderBy('created_at', 'desc')
->paginate(9);
Upvotes: 0
Views: 30