We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the update call in this repository does not trigger an updated Eloquent event.
Current code for said function
public function update(array $data, $id, $attribute="id") { return $this->model->where($attribute, '=', $id)->update($data); }
To fix it, should be something like this:
public function update(array $data, $id, $attribute="id") { return $this->model->where($attribute, '=', $id)->first()->update($data); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Using the update call in this repository does not trigger an updated Eloquent event.
Current code for said function
To fix it, should be something like this:
The text was updated successfully, but these errors were encountered: