make()->each(function (Section $section) use ($sectionEnum) { $section->section = $sectionEnum; $section->page_id = $this->getPageId($sectionEnum); if ($sectionEnum === PageSectionEnum::hire_grow) { $section->text = ''; }; // Call function according to the enum name. $section->data = \method_exists(self::class, sprintf('get%sData', Str::studly($sectionEnum->name))) ? self::{sprintf('get%sData', Str::studly($sectionEnum->name))}($section) : []; $section->saveQuietly(); }); } //end foreach } /** * Get PageId related to the section. * * @param \App\Enums\Sections\PageSectionEnum $sectionEnum * @return integer */ private function getPageId(\App\Enums\Sections\PageSectionEnum $sectionEnum): int { return match ($sectionEnum) { PageSectionEnum::home_ambition, PageSectionEnum::home_life, PageSectionEnum::home_missions, PageSectionEnum::home_team => StaticPage::where('type', StaticPageType::home)->first()->id, PageSectionEnum::unveil_pole, PageSectionEnum::unveil_missions, PageSectionEnum::unveil_local, PageSectionEnum::unveil_sites, PageSectionEnum::unveil_history, PageSectionEnum::unveil_commitments => StaticPage::where('type', StaticPageType::unveil)->first()->id, PageSectionEnum::hire_life, PageSectionEnum::hire_formation, PageSectionEnum::hire_grow, PageSectionEnum::hire_parity, PageSectionEnum::hire_find => StaticPage::where('type', StaticPageType::we_hire)->first()->id, PageSectionEnum::commit_ambition, PageSectionEnum::commit_breeding, PageSectionEnum::commit_living, PageSectionEnum::commit_respect_earth, PageSectionEnum::commit_feed, PageSectionEnum::commit_commitments => StaticPage::where('type', StaticPageType::we_commit)->first()->id, PageSectionEnum::move_life, PageSectionEnum::move_commitments => StaticPage::where('type', StaticPageType::we_move)->first()->id, PageSectionEnum::produce_local, PageSectionEnum::produce_gms, PageSectionEnum::produce_rhd, PageSectionEnum::produce_export, PageSectionEnum::produce_quality, PageSectionEnum::produce_linking => StaticPage::where('type', StaticPageType::we_produce)->first()->id, PageSectionEnum::listening_study => StaticPage::where('type', StaticPageType::we_listen)->first()->id, }; //end match } // * HOME SECTIONS. /** * Get MiniCrud datas for Home - Missions section. * * @param \App\Models\Section $section * @return array */ private function getHomeMissionsData(Section $section) { $data = $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1280x720.png' )) ), fake()->sentence(), fake()->sentence(), 1280, 720, true, 'Illustration de la vidéo'); $data = array_merge( $data, $section->emptyStringBloc([], 'ID de la vidéo Youtube', '6B4O-_1CQoI', true) ); $data = array_merge($data, $section->emptyLinkNewTabBloc([], 'le lien de la vidéo')); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'sites', fake()->randomNumber())); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'métiers', fake()->randomNumber())); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'On se dévoile')); return $data; } /** * Get MiniCrud datas for Home - Ambition section. * * @param \App\Models\Section $section * @return array */ private function getHomeAmbitionData(Section $section) { return $section->emptyButtonBooleanBloc([], 'On se dévoile'); } /** * Get MiniCrud datas for Home - Life section. * * @param \App\Models\Section $section * @return array */ private function getHomeLifeData(Section $section) { return $section->emptyButtonBooleanBloc([], 'On embauche'); } /** * Get MiniCrud datas for Home - Team section. * * @param \App\Models\Section $section * @return array */ private function getHomeTeamData(Section $section) { return $section->emptyButtonBooleanBloc([], 'On Embauche'); } // * UNVEIL SECTIONS. /** * Get MiniCrud datas for Unveil - Pole section. * * @param \App\Models\Section $section * @return array */ private function getUnveilPoleData(Section $section) { $data = $section->emptyKeyNumberBloc([], 'sites', fake()->randomNumber()); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'espèces', fake()->randomNumber())); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'ca', fake()->randomNumber())); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'collaborateurs', fake()->randomNumber())); return $data; } // * HIRE SECTIONS. /** * Get MiniCrud datas for Hire - Life section. * * @param \App\Models\Section $section * @return array */ private function getHireLifeData(Section $section) { $data = $section->emptyKeyNumberBloc([], 'nombre', fake()->randomNumber()); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre", clean(\fake()->randomHtml(1, 1))) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1400, 788)); $data = array_merge($data, $section->emptyWysiwygBloc([], "vidéos", fake()->text(35))); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'Voir les offres tout de suite')); return $data; } /** * Get MiniCrud datas for Hire - Grow section. * * @param \App\Models\Section $section * @return array */ private function getHireFormationData(Section $section) { $data = $section->emptyKeyNumberBloc([], 'nombre n°1', fake()->randomNumber()); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°1", clean(\fake()->randomHtml(1, 1))) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1400, 788, true, 'Image n°1')); $data = array_merge($data, $section->emptyStringBloc([], "Titre h3 de la section", fake()->text(35))); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'nombre n°2', fake()->randomNumber())); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°2", clean(\fake()->randomHtml(1, 1))) ); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'nombre n°3', fake()->randomNumber())); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°3", clean(\fake()->randomHtml(1, 1))) ); $data = array_merge( $data, $section->emptyWysiwygBloc([], "n°2", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1400, 788, true, 'Image n°2')); $data = array_merge( $data, $section->emptyWysiwygBloc([], "n°3", clean(\fake()->randomHtml())) ); return $data; } /** * Get MiniCrud datas for Hire - Parity section. * * @param \App\Models\Section $section * @return array */ private function getHireParityData(Section $section) { $data = $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1400, 788, false, 'Bannière'); $data = array_merge( $data, $section->emptyWysiwygBloc([], "Contenu n°1", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1400, 788, false, 'Image n°1')); $data = array_merge( $data, $section->emptyStringBloc([], "Titre de la section n°2", \fake()->text(50)) ); $data = array_merge( $data, $section->emptyWysiwygBloc([], "Contenu n°2", clean(\fake()->randomHtml())) ); $data = array_merge( $data, $section->emptyStringBloc([], "Titre de la section n°3", \fake()->text(50)) ); $data = array_merge( $data, $section->emptyWysiwygBloc([], "Contenu n°3", clean(\fake()->randomHtml())) ); $data = array_merge( $data, $section->emptyStringBloc([], "Titre de la section n°4", \fake()->text(50)) ); $data = array_merge( $data, $section->emptyWysiwygBloc([], "Contenu n°4", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'On Bouge Ensemble')); return $data; } /** * Get MiniCrud datas for Hire - Grow section. * * @param \App\Models\Section $section * @return array */ private function getHireGrowData(Section $section) { return $section->emptyStringBloc([], "Titre h3 de la section", fake()->text(35)); } /** * Get MiniCrud datas for Hire - Find section. * * @param \App\Models\Section $section * @return array */ private function getHireFindData(Section $section) { $data = $section->emptyStringBloc([], "Titre h3 de la section", fake()->text(35)); $data = array_merge( $data, $section->emptyWysiwygBloc([], "Contenu n°1", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1400, 788, true, 'Image')); $data = array_merge( $data, $section->emptyWysiwygBloc([], "Contenu n°2", clean(\fake()->randomHtml())) ); return $data; } // * COMMIT SECTIONS. /** * Get MiniCrud datas for Commit - Breeding section. * * @param \App\Models\Section $section * @return array */ private function getCommitBreedingData(Section $section) { $data = $section->emptyWysiwygBloc([], 'images', clean(\fake()->randomHtml()), CkEditorConfigName::advanced); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'On Témoigne - engagements')); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'nombre')); $data = array_merge($data, $section->emptyWysiwygBloc([], "text accompagnant le nombre", fake()->sentence())); return $data; } /** * Get MiniCrud datas for Commit - Living section. * * @param \App\Models\Section $section * @return array */ private function getCommitLivingData(Section $section) { $data = $section->emptyButtonBooleanBloc([], 'On Témoigne - engagements'); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'numéro 2', clean(\fake()->randomHtml()), CkEditorConfigName::advanced) ); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'On Bouge')); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'nombre n°1')); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°1", fake()->sentence()) ); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'nombre n°2')); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°2", fake()->sentence()) ); return $data; } /** * Get MiniCrud datas for Commit - Respect Earth section. * * @param \App\Models\Section $section * @return array */ private function getCommitRespectEarthData(Section $section) { $data = $section->emptyKeyNumberBloc([], 'nombre n°1'); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°1", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'nombre n°2')); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°2", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'On Témoigne - engagements')); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-140x140.png' )) ), fake()->sentence(), fake()->sentence(), 140, 140)); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'numéro 2', clean(\fake()->randomHtml()), CkEditorConfigName::advanced) ); $data = array_merge($data, $section->emptyLinkBloc([], 'https://www.google.com', true)); return $data; } /** * Get MiniCrud datas for Commit - Feed section. * * @param \App\Models\Section $section * @return array */ private function getCommitFeedData(Section $section) { $data = $section->emptyKeyNumberBloc([], 'nombre n°1'); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°1", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyKeyNumberBloc([], 'nombre n°2')); $data = array_merge( $data, $section->emptyWysiwygBloc([], "text accompagnant le nombre n°2", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'On Témoigne - engagements')); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'numéro 2', clean(\fake()->randomHtml()), CkEditorConfigName::advanced) ); $data = array_merge($data, $section->emptyButtonBooleanBloc([], 'On Produit')); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'numéro 3', clean(\fake()->randomHtml()), CkEditorConfigName::advanced) ); return $data; } /** * Get MiniCrud datas for Commit - Commitments section. * * @param \App\Models\Section $section * @return array */ private function getCommitCommitmentsData(Section $section) { $data = $section->emptyStringBloc([], "Titre h3 de la section numéro 1", fake()->sentence()); $data = array_merge( $data, $section->emptyStringBloc([], "Titre h3 de la section numéro 2", fake()->sentence()) ); $data = array_merge($data, $section->emptyLinkBloc([], 'https://www.google.com', true)); return $data; } /** * Get MiniCrud datas for Move - Commitments section. * * @param \App\Models\Section $section * @return array */ private function getMoveCommitmentsData(Section $section) { return $section->emptyButtonBooleanBloc([], 'On Témoigne - engagements'); } // * PRODUCE SECTIONS. /** * Get MiniCrud datas for Produce - Linking section. * * @param \App\Models\Section $section * @return array */ private function getProduceLocalData(Section $section) { $data = $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200); $data = array_merge($data, $section->emptyWysiwygBloc([], 'text', clean(\fake()->randomHtml()))); return $data; } /** * Get MiniCrud datas for Produce - Linking section. * * @param \App\Models\Section $section * @return array */ private function getProduceGmsData(Section $section) { $data = $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1200, 450, true, "Bannière de la partie 1"); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 1 de la partie 1', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200, true, "Image 1 de la partie 1")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 2 de la partie 1', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200, true, "Image 2 de la partie 1")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 3 de la partie 1', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200, true, "Image 3 de la partie 1")); $data = array_merge($data, $section->emptyWysiwygBloc([], 'titre 2', clean(\fake()->randomHtml()))); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1200, 450, true, "Bannière de la partie 2")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 1 de la partie 2', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200, true, "Image 1 de la partie 2")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 2 de la partie 2', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200, true, "Image 2 de la partie 2")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 3 de la partie 2', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200, true, "Image 3 de la partie 2")); $data = array_merge($data, $section->emptyWysiwygBloc([], 'titre 3', clean(\fake()->randomHtml()))); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1200, 450, true, "Bannière de la partie 3")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 1 de la partie 3', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 200, 200, true, "Image 1 de la partie 3")); return $data; } /** * Get MiniCrud datas for Produce - Linking section. * * @param \App\Models\Section $section * @return array */ private function getProduceRhdData(Section $section) { $data = $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1200, 450, true, "Bannière de la partie 1"); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 1 de la partie 1', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 1 de la partie 1")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 2 de la partie 1', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 2 de la partie 1")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 3 de la partie 1', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 3 de la partie 1")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 1 de la partie 2', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 1 de la partie 2")); return $data; } /** * Get MiniCrud datas for Produce - Linking section. * * @param \App\Models\Section $section * @return array */ private function getProduceExportData(Section $section) { $data = $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1200, 450, true, "Bannière de la partie"); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 1 de la partie', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 1 de la partie")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 2 de la partie', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 2 de la partie")); $data = array_merge( $data, $section->emptyWysiwygBloc([], 'accompagnant l\'image 3 de la partie', clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 3 de la partie")); return $data; } /** * Get MiniCrud datas for Produce - Linking section. * * @param \App\Models\Section $section * @return array */ private function getProduceQualityData(Section $section) { $data = $section->emptyButtonBooleanBloc([], "'On vous explique comment lire cette étiquette'"); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-1400x788.png' )) ), fake()->sentence(), fake()->sentence(), 1200, 450, true, "Bannière de la partie 1")); $data = array_merge( $data, $section->emptyWysiwygBloc([], "accompagnant l'image 1 de la partie 1", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyPictureBloc([], FileStorageHelper::storeFile( new Section(), new \SplFileInfo(\resource_path( '../database/factories/assets/sections/default-picture-100x100.png' )) ), fake()->sentence(), fake()->sentence(), 100, 100, true, "Image 1 de la partie 1")); $data = array_merge($data, $section->emptyWysiwygBloc([], "text de la partie 2", clean(\fake()->randomHtml()))); $data = array_merge( $data, $section->emptyWysiwygBloc([], "accompagnant le bouton 'On vous écoute'", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyButtonBooleanBloc([], "'On vous écoute'")); $data = array_merge( $data, $section->emptyWysiwygBloc([], "accompagnant le bouton 'On se dévoile'", clean(\fake()->randomHtml())) ); $data = array_merge($data, $section->emptyButtonBooleanBloc([], "'On se dévoile'")); return $data; } }