protected function getModel()
 {
     return $this->roleFacade->findResources($this->id)->select('resource.name AS resource_name')->select('resource.code AS resource_code')->select('action.name AS action_name')->select('action.code AS action_code');
 }
Ejemplo n.º 2
0
 /**
  * @param string $role
  * @return array
  */
 protected function findPermissions($role)
 {
     $resources = $this->roleFacade->findResources($role);
     return $this->roleHelper->toArray($resources);
 }