src/UniqueTranslationValidator.php
protected function getAttributeNameAndLocale($attribute)
    {
        $parts = explode('.', $attribute);

        $name = $parts[0];
        $locale = $parts[1] ?? App::getLocale();

        return [$name, $locale];
    }
protected function getAttributeNameAndLocale($attribute)
    {
        $parts = explode('.', $attribute);

        $name = $parts[0];
        $locale = $parts[1] ?? App::getLocale();

        return [$name, $locale];
    }
protected function getAttributeNameAndLocale ( $ attribute ) { $ parts = explode ( '.' , $ attribute ) ; $ name = $ parts [ 0 ] ; $ locale = $ parts [ 1 ] ?? App :: getLocale ( ) ; return [ $ name , $ locale ] ; }
Get the attribute name and locale.

@param string $attribute

@return array
Get the attribute name and locale .