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;');
        });
    }
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;');
        });
    }
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;' ) ; } ) ; }
Show field as a image.

@param string $server
@param int    $width
@param int    $height

@return $this
Show field as a image .