Perbaikan modul data karyawan dan staff + modul SOP import
This commit is contained in:
@@ -12,7 +12,7 @@ class QuestionBank extends Model
|
||||
protected $fillable = [
|
||||
// Atribut Soal dari desain Anda
|
||||
'old_id',
|
||||
'subject',
|
||||
'subject_id',
|
||||
'question_type',
|
||||
'question_level',
|
||||
'passing_grade',
|
||||
@@ -36,6 +36,11 @@ class QuestionBank extends Model
|
||||
'correct_answer' => 'array', // Otomatis ubah JSON di database jadi Array di PHP
|
||||
];
|
||||
|
||||
public function subject()
|
||||
{
|
||||
return $this->belongsTo(Subject::class, 'subject_id');
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| RELASI DATABASE (Diperlukan agar Filter Dropdown & Tabel berfungsi)
|
||||
|
||||
Reference in New Issue
Block a user