32 lines
656 B
PHP
32 lines
656 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
|
|
class AssessmentLearningObjective extends Model
|
|
{
|
|
protected $fillable = [
|
|
'teacher_subject_id',
|
|
'student_id',
|
|
'learning_objective_id',
|
|
'type',
|
|
];
|
|
|
|
public function teacherSubject(): BelongsTo
|
|
{
|
|
return $this->belongsTo(TeacherSubject::class);
|
|
}
|
|
|
|
public function student(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Student::class);
|
|
}
|
|
|
|
public function learningObjective(): BelongsTo
|
|
{
|
|
return $this->belongsTo(LearningObjective::class);
|
|
}
|
|
}
|