You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change this $model->setAttribute($primaryKey, $data[$primaryKey])->setAttribute('name', $data['name']); to $model->setAttribute($primaryKey, $data[$primaryKey]); $model->setAttribute('name', $data['name']);
The text was updated successfully, but these errors were encountered:
I've got a problem with another library called eloquence.
This line https://github.com/santigarcor/laratrust/blob/master/src/Helper.php#L172 causes a "Call to a member function setAttribute() on null" error.
This only happens if eloquence is installed too. Eloquence installs a library called hookable which overrides the
setAttribute
method. Here's how that methods looks like: https://github.com/jarektkaczyk/hookable/blob/5.6/src/Hookable.php#L98-L115I see two ways to fix this:
setAttribute
method in eloquence fluent Conflict with laratrust jarektkaczyk/hookable#22$model->setAttribute($primaryKey, $data[$primaryKey])->setAttribute('name', $data['name']);
to$model->setAttribute($primaryKey, $data[$primaryKey]); $model->setAttribute('name', $data['name']);
The text was updated successfully, but these errors were encountered: