group)) { $group = Group::find($request->group); } if(isset($request->category)) { $category = Category::find($request->category); } if(isset($request->thread)) { $thread = Thread::find($request->thread); } return $response->view('index', ['groups' => $groups, 'group' => $group, 'category' => $category, 'thread' => $thread ] ); } }