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:
parent
45f8a69e26
commit
16d1293911
24 changed files with 1249 additions and 5 deletions
23
portail/app/Models/ChoixQuestionQuiz.php
Normal file
23
portail/app/Models/ChoixQuestionQuiz.php
Normal 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');
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue