Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

update fails fillable #75

@carlituxman

Description

@carlituxman

If I do a update passing a data array with request->all() it not takes fillable
I change the update method adding ->first like this:

public function update(array $data, $id, $attribute = "id")
{
return $this->model->where($attribute, '=', $id)->first()->update($data);
}

it works!!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions