/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/TimetableAllocation.php (1585B)
'array']; protected $primaryKey = 'id'; protected $table = 'timetable_allocations'; protected static $logName = 'timetable_allocation'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function timetable() { return $this->belongsTo('App\Models\Academic\Timetable'); } public function classTiming() { return $this->belongsTo('App\Models\Academic\ClassTiming'); } public function timetableAllocationDetails() { return $this->hasMany('App\Models\Academic\TimetableAllocationDetail'); } public function getOption(string $option) { return array_get($this->options, $option); } public function scopeFilterById($q, $id) { if (! $id) { return $q; } return $q->where('id', '=', $id); } public function scopeFilterByTimetableId($q, $timetable_id) { if (! $timetable_id) { return $q; } return $q->where('timetable_id', '=', $timetable_id); } }