protected function resolveStrategyClass($strategy)
    {
        if (    ! str_contains($strategy, '.')
            &&  $aliasStrategy = config(
                'cms-models.strategies.show.aliases.' . $strategy,
                config('cms-models.strategies.list.aliases.' . $strategy)
            )
        ) {
            $strategy = $aliasStrategy;
        }

        if (class_exists($strategy) && is_a($strategy, ShowFieldInterface::class, true)) {
            return $strategy;
        }

        $strategy = $this->prefixStrategyNamespace($strategy);

        if (class_exists($strategy) && is_a($strategy, ShowFieldInterface::class, true)) {
            return $strategy;
        }

        return false;
    }
protected function resolveStrategyClass($strategy)
    {
        if (    ! str_contains($strategy, '.')
            &&  $aliasStrategy = config(
                'cms-models.strategies.show.aliases.' . $strategy,
                config('cms-models.strategies.list.aliases.' . $strategy)
            )
        ) {
            $strategy = $aliasStrategy;
        }

        if (class_exists($strategy) && is_a($strategy, ShowFieldInterface::class, true)) {
            return $strategy;
        }

        $strategy = $this->prefixStrategyNamespace($strategy);

        if (class_exists($strategy) && is_a($strategy, ShowFieldInterface::class, true)) {
            return $strategy;
        }

        return false;
    }
protected function resolveStrategyClass ( $ strategy ) { if ( ! str_contains ( $ strategy , '.' ) && $ aliasStrategy = config ( 'cms-models.strategies.show.aliases.' . $ strategy , config ( 'cms-models.strategies.list.aliases.' . $ strategy ) ) ) { $ strategy = $ aliasStrategy ; } if ( class_exists ( $ strategy ) && is_a ( $ strategy , ShowFieldInterface :: class , true ) ) { return $ strategy ; } $ strategy = $ this -> prefixStrategyNamespace ( $ strategy ) ; if ( class_exists ( $ strategy ) && is_a ( $ strategy , ShowFieldInterface :: class , true ) ) { return $ strategy ; } return false ; }
Resolves strategy assuming it is the class name or FQN of a show field interface
implementation or an alias for one.

@param string $strategy
@return string|false     returns full class namespace if it was resolved succesfully
Resolves strategy assuming it is the class name or FQN of a show field interface implementation or an alias for one .