/home/techb158/ileadtechnology.com/SSM/app/Models/configuration/employee
NameSizeModeActions
AttendanceType.php20710644editdlrm
Department.php13020644editdlrm
Designation.php25510644editdlrm
EmployeeCategory.php15560644editdlrm
EmployeeDocumentType.php13340644editdlrm
EmployeeGroup.php13660644editdlrm
LeaveType.php20130644editdlrm
PayHead.php18720644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/configuration/employee/Department.php (1302B)
'array']; protected $primaryKey = 'id'; protected $table = 'departments'; protected static $logName = 'department'; protected static $logFillable = true; protected static $logOnlyDirty = true; protected static $ignoreChangedAttributes = ['updated_at']; public function employeeDesignations() { return $this->hasMany('App\Models\Employee\EmployeeDesignation'); } 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.'%'); } }