Autour de Laravel

Formulaire sur 02 pages avec cases à cochez multiples à stocker en base de donnés

Avatar de LionelKINGUE
LionelKINGUE

Je veux mettre en place un test de personalité. le principe est le suivant : L'utilisateur arrive sur la première page il s'inscrit en entrant ses informations personnelles (nom, prenom, numero, email, ville...), ensuite il est redirigé sur une seconde page qui contient 15 questions dont il doit répondre avec des cases à cocher. Donc une question pourra avoir plusieurs réponses, je souhaiterais stocker dans un enregistrement les informations personnelles et les réponses aux questions de la sorte que le champ question1 enregistre les réponses multiples dans le même champ. je bloque un peu au niveau du controlleur.

Le code de la première page

@extends('layouts.authenticite')

@section('content')

<div class="div-block-36"><img src="{{ asset('public/authenticite/images/aaa.png') }}" loading="lazy" width="676" alt="" class="image-10"></div>
    <section id="contact-form" class="contact-form-2 wf-section">
      <div class="container-5 w-container">
        <p class="paragraph-9 mobile home">Répondez le plus spontanément possible. Il n’y a pas de bonne ni de mauvaise réponse.<br>‍<br>Remplis le formulaire ci-dessous<span class="text-span-3"><strong class="bold-text"> </strong></span></p>
        <div class="w-form">
          <form method="POST" action = "{{ route('test.store') }}"  id="wf-form-Contact-Form" name="wf-form-Contact-Form" data-name="Wf Form Contact Form"    class="form-3">
              @csrf 
            <div class="contact-form-grid">
              <div id="w-node-_573c6b07-3024-7eba-ed02-c2900c89f863-3fbbfe56">
                  <input type="text" class="text-field-5 w-input" maxlength="256" name="prenom" data-name="First Name" placeholder="Prenom" id="First-Name" required=""></div>
              <div id="w-node-_573c6b07-3024-7eba-ed02-c2900c89f865-3fbbfe56">
                  <input type="text" class="text-field-5 w-input" maxlength="256" name="nom" data-name="Last Name" placeholder="Nom" id="Last-Name" required=""></div>
              <div id="w-node-_573c6b07-3024-7eba-ed02-c2900c89f867-3fbbfe56">
                  <input type="email" class="text-field-5 w-input" maxlength="256" name="email" data-name="Email" placeholder="Email" id="Email" required=""></div>
              <div id="w-node-_573c6b07-3024-7eba-ed02-c2900c89f869-3fbbfe56">
                  <input type="tel" class="text-field-5 w-input" maxlength="256" name="telephone" data-name="Contact Phone Number" placeholder="Numéro de téléphone" id="Contact-Phone-Number"></div>
              <div id="w-node-_573c6b07-3024-7eba-ed02-c2900c89f86b-3fbbfe56">
                  <input type="text" class="text-field-5 w-input" maxlength="256" name="ville" data-name="Ville" placeholder="Ville" id="Ville" required=""></div>
            </div><input type="submit" value="Envoyez"  class="submit-button-3 w-button">
          </form>
          
        </div>
      </div>
    </section>
    
@endsection

Le code de la 2eme page

@extends('layouts.authenticite')


@section('content')


<div class="div-block-36"><img src="{{ asset('public/authenticite/images/aaa.png') }}" loading="lazy" width="676" alt="" class="image-10"></div>
<div class="w-container">
    
   <div class="form-wrapper w-form">
      <form  method="POST" action = "{{ route('questions.store') }}" id="email-form" name="emailform" data-name="Email Form">
          @csrf
         <div data-delay="4000" data-animation="cross" class="step-paginator w-slider" data-autoplay="false" data-easing="ease" data-hide-arrows="true" data-disable-swipe="true" data-autoplay-limit="0" data-nav-spacing="3" data-duration="200" data-infinite="false">
            <div class="mask w-slider-mask">
			
			
               <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress">
                              <div class="text-block-6">8%</div>
                           </div>
                        </div>
                     </div>
                     
                     <div class="form-content">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 1</span><br>Lesquelles des activités suivantes serais-tu prêt à pratiquer si tu en avais l’occasion ? <br> <span style = "font-style: italic!important;">(Trois choix possibles)</span></div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="UI-Design-2" name="question1" value = "Le ndochi babouche" data-name="UI Design 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="UI-Design-2" class="checkbox-label w-form-label" >Le ndochi babouche</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="UI-Design-2" name="question1" value = "Le tir à la corde" data-name="UI Design 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="UI-Design-2" class="checkbox-label w-form-label" value = "Le tir à la corde">Le tir à la corde </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="UI-Development-2" name="question1" value = "Le jambo" data-name="UI Development 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="UI-Development-2" class="checkbox-label w-form-label" >Le jambo </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="UI-Development-2" name="question1" value = "La danse" data-name="UI Development 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="UI-Development-2" class="checkbox-label w-form-label" >La danse </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="UI-Development-2" name="question1" value = "Le jeu de la brouette" data-name="UI Development 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="UI-Development-2" class="checkbox-label w-form-label" >Le jeu de la brouette </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="UI-Development-2" name="question1" value = "Le jeu de poursuite" data-name="UI Development 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="UI-Development-2" class="checkbox-label w-form-label" >Le jeu de poursuite  </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
		
                        </div>
                     </div>
                  </div>
               </div>
			   
               <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _2">
                              <div class="text-block-6">16%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content2">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 2</span><br>Comment tu manges le poisson braisé ? <br> <span style = "font-style: italic!important;">(Choix unique)</span></div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="UI-Design-2" name="question2" value = "Avec les doigts" data-name="UI Design 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="UI-Design-2" class="checkbox-label w-form-label">Avec les doigts</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-2" name="question2" value = "Avec des couverts" data-name="General 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-2" class="checkbox-label w-form-label">Avec des couverts </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
               <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _2-5">
                              <div class="text-block-6">24%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content3">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 3</span><br>Ton/ta meilleur(e) ami(e) trébuche, quelle est ta première réaction ? <br> <span style = "font-style: italic!important;">(Choix unique)<span></div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site" name="question3" value = "Tu éclates de rire" data-name="Marketing Site" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site" class="checkbox-label w-form-label">Tu éclates de rire </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site" name="question3" value = "Tu sors ton téléphone" data-name="Marketing Site" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site" class="checkbox-label w-form-label">Tu sors ton téléphone</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General" name="question3" value = "Tu t’inquiètes pour lui/elle" data-name="General" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General" class="checkbox-label w-form-label">Tu t’inquiètes pour lui/elle</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General" name="question3" value = "Tu t’éloignes d’abord" data-name="General" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General" class="checkbox-label w-form-label">Tu t’éloignes d’abord</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
               <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _3">
                              <div class="text-block-6">32%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content4">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 4</span><br>Au karaoké tu es ? <br> <span style = "font-style: italic!important;">(Choix unique)<span></div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question4" value = "Celui qui chante" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Celui qui chante</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question4" value = "Celui qui mime les paroles" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Celui qui mime les paroles</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question4" value = "Celui qui filme" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Celui qui filme </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question4" value = "Celui qui met l’ambiance" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Celui qui met l’ambiance</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               
               
               
               <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _5">
                              <div class="text-block-6">40%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content5">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 5</span><br>Quel est ta fréquence de publication sur ton statut whatsapp ? <br> <span style = "font-style: italic!important;">(Choix unique)<span></div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question5" value = "Tous les jours" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Tous les jours</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question5" value = "Occasionnellement" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Occasionnellement</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question5" value = "Rarement" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Rarement</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question5" value = "Jamais" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Jamais</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _6">
                              <div class="text-block-6">46%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content6">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 6</span><br>Tu es freestyle au njoka ou tu ne transpires pas beaucoup ? <span style = "font-style: italic!important;">(Choix unique)<span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question6" value = "Freestyle" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Freestyle</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question6" value = "Je ne transpire pas" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Je ne transpire pas</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _7">
                              <div class="text-block-6">50%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content7">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 7</span><br>Sur lesquels de ces réseaux sociaux es-tu le plus actifs (Publications/Commentaires/Partages) ? <span style = "font-style: italic!important;">(Autant de choix que possible) <span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question7" value = "Facebook" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Facebook </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question7" value = "LinkedIn" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">LinkedIn </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question7" value = "Twitter" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Twitter  </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question7" value = "Instagram" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Instagram</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question7" value = "Tik Tok" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Tik Tok </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question7" value = "Telegram" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Telegram</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _8">
                              <div class="text-block-6">58%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content8">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 8</span><br>Tu es du genre à changer régulièrement de photo de profil ? <br> <span style = "font-style: italic!important;">(Choix unique) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question8" value = "Très régulièrement" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Très régulièrement</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question8" value = "Rarement" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Rarement</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _9">
                              <div class="text-block-6">64%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content9">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 9</span><br>Après le clash CIV vs CMR les Ivoiriens ont sorti une chanson. Tu vas danser dessus ou pas ? <br> <span style = "font-style: italic!important;">(Choix unique) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question9" value = "Je danse déjà" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Je danse déjà </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question9" value = "Je ne suis pas au courant" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Je ne suis pas au courant </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question9" value = "Pas du tout" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Pas du tout </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _10">
                              <div class="text-block-6">74%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content10">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 10</span><br>Quand la lumière revient tu cries de joie ou tu restes de marbre ? <br> <span style = "font-style: italic!important;">(Choix unique) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question10" value = "Je crie de joie" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Je crie de joie </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question10" value = "Je n’ai aucune réaction" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Je n’ai aucune réaction </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _11">
                              <div class="text-block-6">80%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content11">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 11</span><br>Peut-on rire de tout ?<br> <span style = "font-style: italic!important;">(Choix unique) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question11" value = "Oui" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Oui</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question11" value = "Ça dépend" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Ça dépend </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question11" value = "Non" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Non</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _12">
                              <div class="text-block-6">84%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content12">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 12</span><br>Quelles sont tes programmes de divertissement favoris ? <br> <span style = "font-style: italic!important;">(02 choix possibles) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question12" value = "Le justicier de Nkoabang" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Le justicier de Nkoabang </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question12" value = "Les délires de Takam" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Les délires de Takam</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question12" value = "Programme informatif " data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Programme informatif </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question12" value = "Musique" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Musique</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question12" value = "Les documentaires" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Les documentaires</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _13">
                              <div class="text-block-6">88%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content13">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 13</span><br>Tu as deux bonbons et ton ami t’en demande un. Tu lui donnes un ou tu lui casses une moitié ? <br> <span style = "font-style: italic!important;"> (Choix unique) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question13" value = "Je donne un bonbon" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Je donne un bonbon</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
							  <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question13" value = "Je casse" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Je casse</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question13" value = "Je ne donne pas" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Je ne donne pas</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _14">
                              <div class="text-block-6">92%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content14">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 14</span><br>Le hamburger c’est quoi ? <span style = "font-style: italic!important;"> (Choix unique) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question14" value = "Le bifteck haché" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Le bifteck haché</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question14" value = "Le pain chargé" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">Le pain chargé </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
			   
			   
			   <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress _15">
                              <div class="text-block-6">98%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content15">
                        <div data-ix="show-content-onslide" class="form-section-title"><span class="text-span">Question 15</span><br>Le ketchup c’est quoi ? <span style = "font-style: italic!important;"> (Choix unique) </span> </div>
                        <div data-ix="show-content-onslide" class="form-title-line"></div>
                        <div data-ix="show-content-onslide" class="form-row w-row">
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="Marketing-Site-2" name="question15" value = "Sauce à base de tomate" data-name="Marketing Site 2" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="Marketing-Site-2" class="checkbox-label w-form-label">Sauce à base de tomate</span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                           <div class="col w-col w-col-6 w-col-stack">
                              <label class="w-checkbox checkbox-wrapper">
                                 <input type="checkbox" id="General-3" name="question15" value = "La tomate écrasée" data-name="General 3" data-ix="checkbox-ticker" class="w-checkbox-input checkbox-ticker"><span for="General-3" class="checkbox-label w-form-label">La tomate écrasée </span>
                                 <div class="checkbox-active-overlay"></div>
                              </label>
                           </div>
                        </div>
                     </div>
                  </div>
               </div>
               
               <div class="step w-slide">
                  <div class="collaborate-form-step">
                     <div class="div-block">
                        <div class="pro-bar">
                           <div class="progress last">
                              <div class="text-block-6">100%</div>
                           </div>
                        </div>
                     </div>
                     <div class="form-content final">
                        <div data-ix="show-content-onslide" class="form-section-title small">Merci d'avoir participé à notre test. <br> Cliquez sur "Soumettre le formulaire" pour connaitre votre résultat <br></div>
                        <input type="submit" value="Soumettre le formulaire"  data-ix="show-content-onslide" class="submit-button w-button">
                     </div>
                  </div>
               </div>
            </div>
            <div class="previous w-slider-arrow-left">
               <div class="previous-button">← Back</div>
            </div>
            <div class="next w-slider-arrow-right">
               <div class="next-button">Next</div>
            </div>
         </div>
      </form>
      
      
   </div>
</div>


@endsection


@push('child-scripts')
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 3) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 3) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content2');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content3');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content4');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content5');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content6');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content8');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content9');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content10');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content11');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content12');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 2) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 2) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content13');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content14');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    <script>
        $(document).ready(function(){
            var $checkboxWrapper = $('div.form-content15');
    
            $checkboxWrapper.find('input[type=checkbox]').on('change', function() {
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length > 1) {
                     $(this).prop('checked', false).change();
                }
    
                if( $checkboxWrapper.find('input[type=checkbox]:checked').length === 1) {
                    $checkboxWrapper.find('input[type=checkbox]:not(:checked)').closest('label').css({'opacity': '0.5', 'pointer-events' : 'none'})
                } else {
                    $checkboxWrapper.find('label').css({'opacity': '', 'pointer-events' : ''})
                }
            });
        })
    </script>
    
    
    
@endpush

Mon Controlleur

<?php

namespace App\Http\Controllers;


use Illuminate\Http\Request;

use App\Models\Authenticite;

class AuthenticiteController extends Controller
{
    public function Authenticite(){


        return view('authenticite.index');
            
    }
    
    
    public function Store(Request $request){
    
    
    $validatedData = $request->validate([
            'nom' => 'required',
            'prenom' => 'required',
            'telephone' => 'required',
            'email' => 'required',
    ]);
        
        
    if(empty($request->session()->get('authenticite'))){
        
            $authenticite = new Authenticite();
            $authenticite->fill($validatedData);
            $request->session()->put('authenticite', $authenticite);
            
        }else{
            
            $authenticite = $request->session()->get('authenticite');
            $authenticite->fill($validatedData);
            $request->session()->put('authenticite', $authenticite);
        }
        
        
        return redirect('/questions');
    
    }
        
    public function Questions(){
            
        return view('authenticite.questions');
    }
    
    
    public function QuestionsStore(Request $request){
        
        $authenticite = $request->session()->get('authenticite');
        
        $validatedData = $request->validate([
            
            'question1' => 'nullable',
            'question2' => 'nullable',
            'question3' => 'nullable',
            'question4' => 'nullable',
            'question5' => 'nullable',
            'question6' => 'nullable',
            'question7' => 'nullable',
            'question8' => 'nullable',
            'question9' => 'nullable',
            'question10' => 'nullable',
            'question11' => 'nullable',
            'question12' => 'nullable',
            'question13' => 'nullable',
            'question14' => 'nullable',
            'question15' => 'nullable',
    ]);
        
    if(empty($request->session()->get('authenticite'))){
        
            $authenticite = new Authenticite();
            $authenticite->fill($validatedData);
            $request->session()->put('authenticite', $authenticite);
            
        }else{
            
            $authenticite = $request->session()->get('authenticite');
            $authenticite->fill($validatedData);
            $request->session()->put('authenticite', $authenticite);
        }
        
        
        $authenticite = $request->session()->get('authenticite');
        
        $authenticite->save();
        
        return redirect('/success');
        
    }
    
    public function Success(){
        
        return view('authenticite.success');
    }

}

Les Routes

Route::get('/test', [AuthenticiteController::class, 'Authenticite'])->name('test');
Route::post('/test/store', [AuthenticiteController::class, 'Store'])->name('test.store');

Route::get('/questions', [AuthenticiteController::class, 'Questions'])->name('questions');
Route::post('/questions/store', [AuthenticiteController::class, 'QuestionsStore'])->name('questions.store');

Merci d'avance

Posté il y a 4 mois

Vous ne pouvez pas répondre à ce sujet.