src/Gzero/Core/ViewModels/UserViewModel.php
public function displayName()
    {
        if (isset($this->data['name']) && config('gzero.use_users_nicks')) {
            return $this->data['name'];
        }

        if (isset($this->data['first_name']) || isset($this->data['last_name'])) {
            return $this->data['first_name'] . ' ' . $this->data['last_name'];
        }

        return trans('gzero-core::common.anonymous');
    }
public function displayName()
    {
        if (isset($this->data['name']) && config('gzero.use_users_nicks')) {
            return $this->data['name'];
        }

        if (isset($this->data['first_name']) || isset($this->data['last_name'])) {
            return $this->data['first_name'] . ' ' . $this->data['last_name'];
        }

        return trans('gzero-core::common.anonymous');
    }
public function displayName ( ) { if ( isset ( $ this -> data [ 'name' ] ) && config ( 'gzero.use_users_nicks' ) ) { return $ this -> data [ 'name' ] ; } if ( isset ( $ this -> data [ 'first_name' ] ) || isset ( $ this -> data [ 'last_name' ] ) ) { return $ this -> data [ 'first_name' ] . ' ' . $ this -> data [ 'last_name' ] ; } return trans ( 'gzero-core::common.anonymous' ) ; }
Get display name nick or first and last name

@return string
Get display name nick or first and last name