protected function createNamespaceKey(ViewableContract $viewable): string
    {
        return $this->primaryKey.'.'.strtolower(str_replace('\\', '-', $viewable->getMorphClass()));
    }
protected function createNamespaceKey(ViewableContract $viewable): string
    {
        return $this->primaryKey.'.'.strtolower(str_replace('\\', '-', $viewable->getMorphClass()));
    }
protected function createNamespaceKey ( ViewableContract $ viewable ) : string { return $ this -> primaryKey . '.' . strtolower ( str_replace ( '\\' , '-' , $ viewable -> getMorphClass ( ) ) ) ; }
Create a base key from the given viewable model.

@param  \CyrildeWit\EloquentViewable\Contracts\Viewable  $viewable
@return string
Create a base key from the given viewable model .