protected function getCachedRawAttributes(array $columns = null): array
    {
        $cachedAttributes = $this->getCache()->get($this->getEntityKeyValue());

        if (is_null($columns)) {
            return $cachedAttributes;
        }

        return array_only($cachedAttributes, $columns);
    }
protected function getCachedRawAttributes(array $columns = null): array
    {
        $cachedAttributes = $this->getCache()->get($this->getEntityKeyValue());

        if (is_null($columns)) {
            return $cachedAttributes;
        }

        return array_only($cachedAttributes, $columns);
    }
protected function getCachedRawAttributes ( array $ columns = null ) : array { $ cachedAttributes = $ this -> getCache ( ) -> get ( $ this -> getEntityKeyValue ( ) ) ; if ( is_null ( $ columns ) ) { return $ cachedAttributes ; } return array_only ( $ cachedAttributes , $ columns ) ; }
Return's entity raw attributes in the state they were at last
query.

@param array|null $columns

@return array
Return s entity raw attributes in the state they were at last query .