lundi 21 décembre 2020

display image with Factory ibrary

the function imageUrl() does not work anymore

public function load(ObjectManager $manager)
        {
            
            $faker = Factory:: create('FR-fr');
            
            for ($i = 1; $i < 30; $i++) {
                $ad = new Ad();
                
                $title = $faker->sentence();
                $coverImage = $faker->imageUrl(1000, 350);

                $coverImage = imageUrl2(1000, 350);

what is the alternative?

Aucun commentaire:

Enregistrer un commentaire