/**
  * Attempt to show a certain forum
  *
  * @param Category $category
  * @return Response
  */
 public function showForum(Category $category)
 {
     if (!$category->canView(Auth::user())) {
         abort(403);
     }
     if (Auth::check()) {
         Auth::user()->update(array('last_active_desc' => 'Viewing category "' . $category->name . '"'));
     }
     $category->channels = $category->channels->filter(function ($item) {
         return $item->can(21, Auth::user());
     });
     return view('core.forum.category', ['category' => $category]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return Response
  */
 public function index()
 {
     //
     $categories = Category::all();
     return view('core.admin.forums.permission-editor.category.index', array('categories' => $categories));
 }