/** * @param Page $page * @param Group $group */ public function store(Page $page, Group $group) { $this->auth($page); PageFacade::recurse($page, function (Page $p) use($group) { $p->addAclGroupId($group->getId()); }); }
/** * @param GroupInterface $group * * @return $this */ public function removeGroup(GroupInterface $group) { $this->groups()->detach($group->getId()); return $this; }
public function save(GroupModelInterface $group) { return $group->save(); }