protected function generateCacheKey(string $role)
    {
        return md5(serialize(array_merge($this->params, [
            'widget' => get_class($this),
            'app_theme' => app_theme(),
            'app_locale' => app_locale(),
            'role' => $role,
        ])));
    }
protected function generateCacheKey(string $role)
    {
        return md5(serialize(array_merge($this->params, [
            'widget' => get_class($this),
            'app_theme' => app_theme(),
            'app_locale' => app_locale(),
            'role' => $role,
        ])));
    }
protected function generateCacheKey ( string $ role ) { return md5 ( serialize ( array_merge ( $ this -> params , [ 'widget' => get_class ( $ this ) , 'app_theme' => app_theme ( ) , 'app_locale' => app_locale ( ) , 'role' => $ role , ] ) ) ) ; }
Generate a unique cache key depending on the input parameters.
@param  string $role
@return string
Generate a unique cache key depending on the input parameters .