Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update fails fillable #75

Open
carlituxman opened this issue May 9, 2016 · 1 comment
Open

update fails fillable #75

carlituxman opened this issue May 9, 2016 · 1 comment

Comments

@carlituxman
Copy link

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!!!

@chetans9
Copy link

I did the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants