Closed Datalink-Wouter closed 6 years ago
Hi, sorry for the late response.
On your first point, you're right, there is currently no way to override ordering of posts. The way posts are ordered and presented matches the behaviour most other forums. If you really want to change this, with laravel-forum-frontend, you can extend the ThreadController
class and override the show
method, then update your config (see https://teamteatime.net/docs/laravel-forum/4.x/front-end.configuration.md).
As for pagination, it's not obvious, but this line is what renders the pagination links. Just override the view and use that line somewhere near the top as well.
Hi,
So changing the posts() method in the Thread model: from
$query = $this->hasMany(Post::class);
to$query = $this->hasMany(Post::class)->orderBy('created_at','DESC');
will put the initial post as last post.Kind regards, Wouter