Answers for "how to show image in easyadmin 3 index page"

PHP
0

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)
    ];
}
Posted by: Guest on October-19-2020

Code answers related to "how to show image in easyadmin 3 index page"

Browse Popular Code Answers by Language