belongsTo(Quiz::class); } public function answerOptions() { return $this->hasMany(QuizAnswerOption::class,'quiz_question_id')->orderBy('sort_order'); } public function typeLabel(): string { return match($this->type) { 'multiple_choice' => 'Multiple Choice', 'exclusion' => 'Ausschluss', 'true_false' => 'Wahr/Falsch', 'free_text' => 'Freitext', default => $this->type, }; } }