Front Page › Forums › General › Syntax for updating data › Reply To: Syntax for updating data
March 31, 2020 at 11:20 am
#70071
Mehedi Hasan
Member
Hello Gordian,
It’s really tough to say specifically without knowing the complete scenario you have but make sure you are adding your code on the fillable to update the Eloquent model. Something like:
wp-content/plugins/wp-erp/modules/hrm/includes/models/employee.php:21
protected $fillable = [
'user_id',
'employee_id',
'designation',
'department',
'location',
'hiring_source',
'hiring_date',
'termination_date',
'date_of_birth',
'reporting_to',
'pay_rate',
'pay_type',
'type',
'status',
'delete_at'
];
You can also post it to our GitHub so that other developers can have a look on it.
Thanks