00 Day
00 Hour
00 Min
00 Sec

Reply To: Syntax for updating data

Home Forums General Syntax for updating data Reply To: Syntax for updating data

#70071
Jay
Participant

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

Contact Us

Reach out to us for any inquiry

You must enter full name
You must enter email
You must enter message

We received your query

We will reply to you very soon :)