public function cacheKey()
    {
        $this->cacheKey = $this->cacheKey ??
            $this->generateCacheKey(
                auth()->guest() ? 'guest' : auth()->user()->role
            );

        return $this->cacheKey;
    }
public function cacheKey()
    {
        $this->cacheKey = $this->cacheKey ??
            $this->generateCacheKey(
                auth()->guest() ? 'guest' : auth()->user()->role
            );

        return $this->cacheKey;
    }
public function cacheKey ( ) { $ this -> cacheKey = $ this -> cacheKey ?? $ this -> generateCacheKey ( auth ( ) -> guest ( ) ? 'guest' : auth ( ) -> user ( ) -> role ) ; return $ this -> cacheKey ; }
Get a unique key of the widget for caching.
@return string
Get a unique key of the widget for caching .