public function getDisplayNameAttribute()
    {
        if (! is_null($this->details->display_name)) {
            return $this->details->display_name;
        }

        if (! is_null($this->details->full_name)) {
            return $this->details->full_name;
        }

        return $this->email;
    }
public function getDisplayNameAttribute()
    {
        if (! is_null($this->details->display_name)) {
            return $this->details->display_name;
        }

        if (! is_null($this->details->full_name)) {
            return $this->details->full_name;
        }

        return $this->email;
    }
public function getDisplayNameAttribute ( ) { if ( ! is_null ( $ this -> details -> display_name ) ) { return $ this -> details -> display_name ; } if ( ! is_null ( $ this -> details -> full_name ) ) { return $ this -> details -> full_name ; } return $ this -> email ; }
Get the most logical display name for the user.

@return string
Get the most logical display name for the user .