/home/techb158/ileadtechnology.com/SSM/app/Models/student
NameSizeModeActions
Admission.php21260644editdlrm
Registration.php30020644editdlrm
Student.php75740644editdlrm
StudentAccount.php19130644editdlrm
StudentAttendance.php24670644editdlrm
StudentDocument.php19770644editdlrm
StudentFeeRecord.php29860644editdlrm
StudentFeeRecordDetail.php18960644editdlrm
StudentOptionalFeeRecord.php16920644editdlrm
StudentParent.php55590644editdlrm
StudentQualification.php17110644editdlrm
StudentRecord.php77660644editdlrm
StudentSibling.php16450644editdlrm
TransferCertificate.php19890644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/student/StudentDocument.php (1977B)
'array']; protected $primaryKey = 'id'; protected $table = 'student_documents'; protected static $logName = 'student'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function studentDocumentType() { return $this->belongsTo('App\Models\Configuration\Student\StudentDocumentType'); } 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 scopeFilterByStudentDocumentTypeId($q, $student_document_type_id) { if (! $student_document_type_id) { return $q; } return $q->where('student_document_type_id', '=', $student_document_type_id); } public function scopeFilterByTitle($q, $title, $s = 0) { if (! $title) { return $q; } return $s ? $q->where('title', '=', $title) : $q->where('title', 'like', '%'.$title.'%'); } }