/** * Show the application dashboard to the user. * * @return Response */ public function getIndex(Board $board) { if (!$this->user->canEditConfig($board)) { return abort(403); } $roles = Role::whereBoardRole($board, $this->user)->get(); return $this->view(static::VIEW_ROLES, ['board' => $board, 'roles' => $roles, 'tab' => "roles"]); }