Exemplo n.º 1
0
 /**
  * Récupère tous les thèmes existant
  *
  * @return \Illuminate\Http\Response
  */
 public function themeAutoComplete($term)
 {
     $theme = Quizz::themeList($term);
     $compt = 0;
     $tab = '';
     foreach ($theme as $list) {
         if ($compt === 0) {
             $tab .= $list['theme'];
         } else {
             $tab .= ',' . $list['theme'];
         }
         $compt = 1;
     }
     return $tab;
 }