/home/techb158/ileadtechnology.com/SSM/app/Models/employee
Edit: /home/techb158/ileadtechnology.com/SSM/app/Models/employee/PayrollTemplateDetail.php (1580B)
'array'];
protected $primaryKey = 'id';
protected $table = 'payroll_template_details';
protected static $logName = 'payroll_template_detail';
protected static $logFillable = true;
protected static $logOnlyDirty = true;
protected static $ignoreChangedAttributes = ['updated_at'];
public function payHead()
{
return $this->belongsTo('App\Models\Configuration\Employee\PayHead');
}
public function payrollTemplate()
{
return $this->belongsTo('App\Models\Employee\PayrollTemplate');
}
public function attendanceType()
{
return $this->belongsTo('App\Models\Configuration\Employee\AttendanceType','employee_attendance_type_id');
}
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);
}
}