protected function getDropdownValuesFromSource($source)
    {
        if (is_a($source, Enum::class, true)) {
            /** @var Enum $source */
            return array_map(
                function ($value) { return (string) $value; },
                $source::values()
            );
        }

        if (is_a($source, DropdownStrategyInterface::class, true)) {
            /** @var DropdownStrategyInterface $source */
            $source = app($source);
            return $source->values();
        }

        return false;
    }
protected function getDropdownValuesFromSource($source)
    {
        if (is_a($source, Enum::class, true)) {
            /** @var Enum $source */
            return array_map(
                function ($value) { return (string) $value; },
                $source::values()
            );
        }

        if (is_a($source, DropdownStrategyInterface::class, true)) {
            /** @var DropdownStrategyInterface $source */
            $source = app($source);
            return $source->values();
        }

        return false;
    }
protected function getDropdownValuesFromSource ( $ source ) { if ( is_a ( $ source , Enum :: class , true ) ) { /** @var Enum $source */ return array_map ( function ( $ value ) { return ( string ) $ value ; } , $ source :: values ( ) ) ; } if ( is_a ( $ source , DropdownStrategyInterface :: class , true ) ) { /** @var DropdownStrategyInterface $source */ $ source = app ( $ source ) ; return $ source -> values ( ) ; } return false ; }
Returns values from a source FQN, if possible.

@param string $source
@return string[]|false
Returns values from a source FQN if possible .