/home/techb158/ileadtechnology.com/SSM/app/Models/configuration/misc
NameSizeModeActions
BloodGroup.php12780644editdlrm
Caste.php12610644editdlrm
Category.php12710644editdlrm
Religion.php12700644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/configuration/misc/Caste.php (1261B)
'array']; protected $primaryKey = 'id'; protected $table = 'castes'; protected static $logName = 'caste'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function student() { return $this->hasMany('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 scopeFilterByName($q, $name, $s = 0) { if (! $name) { return $q; } return $s ? $q->where('name', '=', $name) : $q->where('name', 'like', '%'.$name.'%'); } }