Reply To: Syntax for updating data

Front Page Forums General Syntax for updating data Reply To: Syntax for updating data

#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

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 message

We will reach you with your email address soon. Thank you for the time!