Esempio n. 1
0
 /**
  * @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());
     });
 }
Esempio n. 2
0
 /**
  * @param GroupInterface $group
  *
  * @return $this
  */
 public function removeGroup(GroupInterface $group)
 {
     $this->groups()->detach($group->getId());
     return $this;
 }
Esempio n. 3
0
 public function save(GroupModelInterface $group)
 {
     return $group->save();
 }