public function getAvatarAttribute()
    {
        $hash = ! empty($this->email) ? md5(strtolower(trim($this->email))) : '';

        return sprintf('//secure.gravatar.com/avatar/%s?d=mm', $hash);
    }
public function getAvatarAttribute()
    {
        $hash = ! empty($this->email) ? md5(strtolower(trim($this->email))) : '';

        return sprintf('//secure.gravatar.com/avatar/%s?d=mm', $hash);
    }
public function getAvatarAttribute ( ) { $ hash = ! empty ( $ this -> email ) ? md5 ( strtolower ( trim ( $ this -> email ) ) ) : '' ; return sprintf ( '//secure.gravatar.com/avatar/%s?d=mm' , $ hash ) ; }
Get the avatar url from Gravatar

@return string
Get the avatar url from Gravatar