public function compose(View $view)
 {
     $sticky_posts = \App\Modules\ForumModule\Entities\Post::withMeta()->sticky()->orderedByDate()->get();
     $view->with('sticky_posts', $sticky_posts);
 }
Beispiel #2
0
 public function index()
 {
     $posts = Post::withMeta()->orderedByScore()->paginate(10);
     return view('forum::posts.index', compact('posts'));
 }