/** * Attempt to show a certain thread * * @param Channel $channel * @param Topic $topic * @return Response */ public function showThread(Channel $channel, Topic $topic) { if (!$channel->category->canView(Auth::user())) { abort(403); } if (!$channel->canView(Auth::user())) { abort(403); } if (!$topic->canView) { abort(403); } if (Auth::check()) { if (!$topic->old && !is_null(Auth::user())) { $topic->markAsRead(Auth::id()); } Auth::user()->update(array('last_active_desc' => 'Viewing thread "' . $topic->title . '"')); } return view('core.forum.thread', ['thread' => $topic]); }