ajoute Quiz flash (chantier vrai cockpit, étape 2) : QCM et vrai/faux, lancé en direct, indépendant d'une séance de lab

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Adam Belkacemi 2026-10-13 12:14:30 +02:00
parent 45f8a69e26
commit 16d1293911
24 changed files with 1249 additions and 5 deletions

View file

@ -0,0 +1,23 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ChoixQuestionQuiz extends Model
{
protected $table = 'choix_questions_quiz';
protected $fillable = ['question_quiz_id', 'texte', 'est_correct', 'ordre'];
protected $casts = [
'est_correct' => 'boolean',
];
/** @return BelongsTo<QuestionQuiz, $this> */
public function question(): BelongsTo
{
return $this->belongsTo(QuestionQuiz::class, 'question_quiz_id');
}
}