Fields

Image

Extends File

  • has the same features

The Image field is an extension of File, which allows you to display previews of loaded images.

use MoonShine\Fields\Image;
 
//...
 
public function fields(): array
{
return [
Image::make('Thumbnail')
];
}
 
//...

image image dark