/home/techb158/ileadtechnology.com/SSM/app/Models/configuration/academic
NameSizeModeActions
CertificateTemplate.php16560644editdlrm
CourseGroup.php20340644editdlrm
IdCardTemplate.php11530644editdlrm
Institute.php16520644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/configuration/academic/IdCardTemplate.php (1153B)
'array']; protected $primaryKey = 'id'; protected $table = 'id_card_templates'; protected static $logName = 'id_card_template'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; 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 scopeFilterByName($q, $name, $s = 0) { if (!$name) { return $q; } return ($s) ? $q->where('name', '=', $name) : $q->where('name', 'like', '%' . $name . '%'); } public function scopeFilterByType($q, $type, $s = 0) { if (!$type) { return $q; } return ($s) ? $q->where('type', '=', $type) : $q->where('type', 'like', '%' . $type . '%'); } }