示例#1
0
 /**
  * @return \Illuminate\Support\Collection
  */
 protected function getPermissions()
 {
     /** @var HasDefender $user */
     $user = $this->defender->getUser();
     $permissions = $user ? $user->getPermissions() : null;
     return $permissions;
 }
示例#2
0
 /**
  * @return \Illuminate\Support\Collection
  */
 protected function getPermissions()
 {
     return $this->defender->getUser()->getPermissions();
 }