function showTopic(ForumTopic $topic) { $topic->views++; $topic->save(); $topic->markAsRead(Auth::user()); if (Auth::user()->canAccessTopic($topic->id)) { return View::make('forums/viewTopic')->with('topic', $topic); } else { return App::abort(404); } }