public function getLocaleNativeAttribute()
    {
        $locale = $this->getAttributeFromArray('locale');

        try {
            return localization()
                ->getSupportedLocales()
                ->get($locale)
                ->native();
        }
        catch (\Exception $e) {
            return strtoupper($locale);
        }
    }
public function getLocaleNativeAttribute()
    {
        $locale = $this->getAttributeFromArray('locale');

        try {
            return localization()
                ->getSupportedLocales()
                ->get($locale)
                ->native();
        }
        catch (\Exception $e) {
            return strtoupper($locale);
        }
    }
public function getLocaleNativeAttribute ( ) { $ locale = $ this -> getAttributeFromArray ( 'locale' ) ; try { return localization ( ) -> getSupportedLocales ( ) -> get ( $ locale ) -> native ( ) ; } catch ( \ Exception $ e ) { return strtoupper ( $ locale ) ; } }
Get the locale's native name.

@return string
Get the locale s native name .