/home/techb158/ileadtechnology.com/SSM/app/Models/configuration/exam
NameSizeModeActions
Assessment.php22480644editdlrm
AssessmentDetail.php17210644editdlrm
Grade.php22330644editdlrm
GradeDetail.php16700644editdlrm
Observation.php24010644editdlrm
ObservationDetail.php17330644editdlrm
ObservationRecord.php25350644editdlrm
Term.php21900644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/configuration/exam/GradeDetail.php (1670B)
'array']; protected $primaryKey = 'id'; protected $table = 'exam_grade_details'; protected static $logName = 'exam_grade_detail'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function examGrade() { return $this->belongsTo('App\Models\Configuration\Exam\Grade', 'exam_grade_id'); } 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 scopeFilterByExamGradeId($q, $exam_grade_id) { if (! $exam_grade_id) { return $q; } return $q->where('exam_grade_id', '=', $exam_grade_id); } public function scopeFilterByName($q, $name, $s = 0) { if (! $name) { return $q; } return $s ? $q->where('name', '=', $name) : $q->where('name', 'like', '%'.$name.'%'); } }