faker->text(10) . random_int(1, 100); $upload = new SplFileInfo(resource_path('assets/images/cookrange.jpg')); $picture = new Gamme(); $imgpath = Utils::storeImage($upload, $picture->getTable()); $upload = new SplFileInfo(resource_path('assets/images/entete_sous_gammes.jpg')); $bannerpath = Utils::storeImage($upload, $picture->getTable()); return [ 'parent_gamme_id' => null, 'title' => $title, 'slug' => Str::slug($title), 'text' => $this->faker->text(5), 'color' => $this->faker->hexColor(), 'picture' => $imgpath, 'alt_text_picture' => $this->faker->sentence(10), 'banner' => $bannerpath, 'alt_text_banner' => $this->faker->sentence(10), ]; } }