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