/home/techb158/ileadtechnology.com/SSM/app/Models/academic
NameSizeModeActions
AcademicSession.php30350644editdlrm
Batch.php35630644editdlrm
Certificate.php29890644editdlrm
ClassTeacher.php18460644editdlrm
ClassTiming.php25450644editdlrm
ClassTimingSession.php16680644editdlrm
Course.php28770644editdlrm
Subject.php31870644editdlrm
SubjectTeacher.php15730644editdlrm
Timetable.php25640644editdlrm
TimetableAllocation.php15850644editdlrm
TimetableAllocationDetail.php14260644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/academic/SubjectTeacher.php (1573B)
'array', 'date_effective' => 'date']; protected $primaryKey = 'id'; protected $table = 'subject_teachers'; protected static $logName = 'subject_teacher'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function subject() { return $this->belongsTo('App\Models\Academic\Subject'); } public function employee() { return $this->belongsTo('App\Models\Employee\Employee'); } public function scopeFilterById($q, $id) { if (! $id) { return $q; } return $q->where('id', '=', $id); } public function scopeFilterBySubjectId($q, $subject_id) { if (! $subject_id) { return $q; } return $q->where('subject_id', '=', $subject_id); } public function scopeFilterByEmployeeId($q, $employee_id) { if (! $employee_id) { return $q; } return $q->where('employee_id', '=', $employee_id); } }