예제 #1
0
 public function index()
 {
     $filter = $this->topic->present()->getTopicFilter();
     $topics = $this->topic->getTopicsWithFilter($filter);
     $nodes = Node::allLevelUp();
     $links = Link::remember(1440)->get();
     return view('topics.index', compact('topics', 'nodes', 'links'));
 }