Initial commit
This commit is contained in:
commit
c909d539bc
7178 files changed
+756624
No files matched your search
@@ -0,0 +1,30 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user