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
When I change the permissions of a role with $role->attachPermission() or $role->detachPermission()and save the role, the role is updated in db but the save() method returns false(a.k.a. no actually model db change happened).
I think the reason for this is that in Laravel 5.3 the behaviour value of the save() method changed:
Thank you for the link - I already used that fix :-)
Nevertheless I think the expected result of updating a manipulated role should be true. Maybe It's possible to manually make the instance "dirty" when attaching/detaching permissions?
When I change the permissions of a role with
$role->attachPermission()
or$role->detachPermission()
and save the role, the role is updated in db but thesave()
method returnsfalse
(a.k.a. no actually model db change happened).I think the reason for this is that in Laravel 5.3 the behaviour value of the
save()
method changed:The text was updated successfully, but these errors were encountered: