public function gavatarImage($width = null, $height = null)
    {
        return new HtmlString(
          view()->make(
            "vendor.user.avatar", [
              'width' => $width,
              'height' => $height,
              'returnGravatarIfNotFound'=>true,
              'imageURL'=> asset($this->gravatar),
              'user' => $this
            ]
          )->render()
        );
    }
public function gavatarImage($width = null, $height = null)
    {
        return new HtmlString(
          view()->make(
            "vendor.user.avatar", [
              'width' => $width,
              'height' => $height,
              'returnGravatarIfNotFound'=>true,
              'imageURL'=> asset($this->gravatar),
              'user' => $this
            ]
          )->render()
        );
    }
public function gavatarImage ( $ width = null , $ height = null ) { return new HtmlString ( view ( ) -> make ( "vendor.user.avatar" , [ 'width' => $ width , 'height' => $ height , 'returnGravatarIfNotFound' => true , 'imageURL' => asset ( $ this -> gravatar ) , 'user' => $ this ] ) -> render ( ) ) ; }
Print Gravatar image.

@param int $width  Width of image. ex: 200
@param int $height Height of image. ex: 200

@return string|null
Print Gravatar image .