src/Defender/Traits/HasDefender.php
public function getRolesPermissions($force = false)
    {
        if (empty($this->cachedRolePermissions) or $force) {
            $this->cachedRolePermissions = $this->getFreshRolesPermissions();
        }

        return $this->cachedRolePermissions;
    }
public function getRolesPermissions($force = false)
    {
        if (empty($this->cachedRolePermissions) or $force) {
            $this->cachedRolePermissions = $this->getFreshRolesPermissions();
        }

        return $this->cachedRolePermissions;
    }
public function getRolesPermissions ( $ force = false ) { if ( empty ( $ this -> cachedRolePermissions ) or $ force ) { $ this -> cachedRolePermissions = $ this -> getFreshRolesPermissions ( ) ; } return $ this -> cachedRolePermissions ; }
Get permissions from database based on roles.

@param bool $force

@return \Illuminate\Support\Collection
Get permissions from database based on roles .