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