original_string: public function image($server = '', $width = 200, $height = 200)
      {
          return $this->unescape()->as(function ($images) use ($server, $width, $height) {
              return collect($images)->map(function ($path) use ($server, $width, $height) {
                  if (empty($path)) {
                      return '';
                  }
  
                  if (url()->isValidUrl($path)) {
                      $src = $path;
                  } elseif ($server) {
                      $src = $server.$path;
                  } else {
                      $disk = config('admin.upload.disk');
  
                      if (config("filesystems.disks.{$disk}")) {
                          $src = Storage::disk($disk)->url($path);
                      } else {
                          return '';
                      }
                  }
  
                  return "<img src='$src' style='max-width:{$width}px;max-height:{$height}px' class='img' />";
              })->implode('&nbsp;');
          });
      }
code: public function image($server = '', $width = 200, $height = 200)
      {
          return $this->unescape()->as(function ($images) use ($server, $width, $height) {
              return collect($images)->map(function ($path) use ($server, $width, $height) {
                  if (empty($path)) {
                      return '';
                  }
  
                  if (url()->isValidUrl($path)) {
                      $src = $path;
                  } elseif ($server) {
                      $src = $server.$path;
                  } else {
                      $disk = config('admin.upload.disk');
  
                      if (config("filesystems.disks.{$disk}")) {
                          $src = Storage::disk($disk)->url($path);
                      } else {
                          return '';
                      }
                  }
  
                  return "<img src='$src' style='max-width:{$width}px;max-height:{$height}px' class='img' />";
              })->implode('&nbsp;');
          });
      }
code_tokens: public function image ( $ server = '' , $ width = 200 , $ height = 200 ) { return $ this -> unescape ( ) -> as ( function ( $ images ) use ( $ server , $ width , $ height ) { return collect ( $ images ) -> map ( function ( $ path ) use ( $ server , $ width , $ height ) { if ( empty ( $ path ) ) { return '' ; } if ( url ( ) -> isValidUrl ( $ path ) ) { $ src = $ path ; } elseif ( $ server ) { $ src = $ server . $ path ; } else { $ disk = config ( 'admin.upload.disk' ) ; if ( config ( "filesystems.disks.{$disk}" ) ) { $ src = Storage :: disk ( $ disk ) -> url ( $ path ) ; } else { return '' ; } } return "<img src='$src' style='max-width:{$width}px;max-height:{$height}px' class='img' />" ; } ) -> implode ( '&nbsp;' ) ; } ) ; }
docstring: Show field as a image.
  
  @param string $server
  @param int    $width
  @param int    $height
  
  @return $this
docstring_tokens: Show field as a image .