/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/Admission.php (2126B)
'array', 'date_of_admission' => 'date']; protected $primaryKey = 'id'; protected $table = 'admissions'; protected static $logName = 'admission'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; protected $appends = ['admission_number']; public function academicSession() { return $this->belongsTo('App\Models\Academic\AcademicSession'); } public function registration() { return $this->belongsTo('App\Models\Student\Registration'); } public function batch() { return $this->belongsTo('App\Models\Academic\Batch'); } 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 getAdmissionNumberAttribute() { return ($this->prefix).str_pad($this->number, config('config.admission_number_digit'), '0', STR_PAD_LEFT); } public function scopeFilterByNumber($q, $number) { if (! $number) { return $q; } return $q->where('number', '=', $number); } public function scopeFilterByPrefix($q, $prefix) { if (! $prefix) { return $q; } return $q->where('prefix', '=', $prefix); } }