user38638
0
Q:

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)
    ];
}
0

New to Communities?

Join the community