*/ public function toArray(Request $request): array { return [ 'identifiant' => $this->identifiant, 'titre' => $this->titre, 'niveau' => $this->niveau, 'duree_min' => $this->duree_min, 'competences' => $this->competences, ]; } }