Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to show image in easyadmin 3 index page

public function configureFields(string $pageName): iterable
{
    return [
        ImageField::new('imageName', 'Image')
            ->onlyOnIndex()
            ->setBasePath('/images/questions'),
        ImageField::new('imageFile', 'Image')
            ->onlyOnForms()
            ->setFormType(VichImageType::class)
    ];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #show #image #easyadmin #index #page
ADD COMMENT
Topic
Name
8+6 =