/home/techb158/ileadtechnology.com/SSM/app/Models/student
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/student/StudentQualification.php (1711B)
'array'];
protected $primaryKey = 'id';
protected $table = 'student_qualifications';
protected static $logName = 'student_qualification';
protected static $logFillable = true;
protected static $logOnlyDirty = true;
protected static $ignoreChangedAttributes = ['updated_at'];
public function student()
{
return $this->belongsTo('App\Models\Student\Student');
}
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 scopeFilterByStudentId($q, $student_id)
{
if (! $student_id) {
return $q;
}
return $q->where('student_id', '=', $student_id);
}
public function scopeFilterByStandard($q, $standard)
{
if (! $standard) {
return $q;
}
return $q->where('standard', '=', $standard);
}
}