This repository has been archived on 2026-09-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
tutoring/app/Models/TeachingArrangementStudent.php
2026-01-14 00:54:08 +00:00

31 lines
746 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class TeachingArrangementStudent extends Model
{
protected $fillable = [
'teaching_arrangement_id',
'student_teacher_subject_id',
];
/**
* The teaching arrangement (scheduled slot).
*/
public function arrangement(): BelongsTo
{
return $this->belongsTo(TeachingArrangement::class, 'teaching_arrangement_id');
}
/**
* The student–teacher–subject relationship linked to this slot.
*/
public function studentTeacherSubject(): BelongsTo
{
return $this->belongsTo(StudentTeacherSubject::class, 'student_teacher_subject_id');
}
}