From 1515753f7f545990d15138a66db7be079a8472a0 Mon Sep 17 00:00:00 2001 From: abiyasa05 Date: Wed, 26 Mar 2025 11:35:33 +0700 Subject: [PATCH] update: models (answers, assessments, question) --- .../iClOP-V2/app/Models/Literacy/LiteracyAnswer.php | 2 +- .../iClOP-V2/app/Models/Literacy/LiteracyAssessment.php | 2 +- .../iClOP-V2/app/Models/Literacy/LiteracyQuestion.php | 7 +------ 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAnswer.php b/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAnswer.php index 27b089f..8cd6dc3 100644 --- a/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAnswer.php +++ b/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAnswer.php @@ -9,7 +9,7 @@ class LiteracyAnswer extends Model { use HasFactory; - protected $fillable = ['question_id', 'option_id', 'assessment_id', 'answer_text', 'submitted_at', 'created_at', 'updated_at']; + protected $fillable = ['question_id', 'option_id', 'assessment_id', 'answer_text', 'submitted_at', 'feedback', 'created_at', 'updated_at']; public function question() { diff --git a/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAssessment.php b/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAssessment.php index fbccb4d..fea738e 100644 --- a/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAssessment.php +++ b/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyAssessment.php @@ -17,10 +17,10 @@ class LiteracyAssessment extends Model 'user_id', 'status', 'score', - 'feedback', 'answer_text', 'assessed_at', 'created_at', + 'updated_at' ]; /** diff --git a/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyQuestion.php b/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyQuestion.php index c9ac5bf..ae0365d 100644 --- a/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyQuestion.php +++ b/Penilaian Literasi/iClOP-V2/app/Models/Literacy/LiteracyQuestion.php @@ -10,12 +10,7 @@ class LiteracyQuestion extends Model use HasFactory; protected $table = 'literacy_questions'; - protected $fillable = ['material_id', 'question_text', 'type', 'essay_answer', 'essay_score']; - - public function material() - { - return $this->belongsTo(LiteracyMaterial::class, 'material_id'); - } + protected $fillable = ['question_text', 'type', 'essay_answer', 'essay_score']; public function answers() {