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

        return $this->cachedPermissions;
    }
public function getAllPermissions($force = false)
    {
        if (empty($this->cachedPermissions) or $force) {
            $this->cachedPermissions = $this->getFreshAllPermissions();
        }

        return $this->cachedPermissions;
    }
public function getAllPermissions ( $ force = false ) { if ( empty ( $ this -> cachedPermissions ) or $ force ) { $ this -> cachedPermissions = $ this -> getFreshAllPermissions ( ) ; } return $ this -> cachedPermissions ; }
Retrieve all user permissions.

@param bool $force

@return \Illuminate\Support\Collection
Retrieve all user permissions .