public function getAvailableLanguages()
    {
        if (!empty($this->owner->{$this->translationsAttribute})) {
            return array_keys($this->owner->{$this->translationsAttribute});
        }
        return null;
    }
public function getAvailableLanguages()
    {
        if (!empty($this->owner->{$this->translationsAttribute})) {
            return array_keys($this->owner->{$this->translationsAttribute});
        }
        return null;
    }
public function getAvailableLanguages ( ) { if ( ! empty ( $ this -> owner -> { $ this -> translationsAttribute } ) ) { return array_keys ( $ this -> owner -> { $ this -> translationsAttribute } ) ; } return null ; }
Returns array of available languages.
Populated models will be used if its set, otherwise query will be used.
@return array
Returns array of available languages . Populated models will be used if its set otherwise query will be used .