Пример #1
0
 public function index()
 {
     $forumHeads = forumHead::all();
     $latestTopic = Topic::latest('created_at')->take(5)->get();
     return view('forum.index', compact('forumHeads', 'latestTopic'));
 }