Image entry
Overview
Images can be easily displayed within your infolist:
use Filament\Infolists\Components\ImageEntry;
ImageEntry::make('header_image')
The entry must contain the path to the image, relative to the root directory of its storage disk, or an absolute URL to it.
![Image entry](https://github.com/filamentphp/filament/blob/3.x/docs-assets/screenshots/images/light/infolists/entries/image/simple.jpg?raw=true)
Managing the image disk
By default, the public
disk will be used to retrieve images. You may pass a custom disk name to the disk()
method:
use Filament\Infolists\Components\ImageEntry;
ImageEntry::make('header_image')
->disk('s3')
Private images
Filament can generate temporary URLs to render private images, you may set the visibility()
to private
:
use Filament\Infolists\Components\ImageEntry;
ImageEntry::make('header_image')
->visibility('private')