Replies: 1 comment
-
Overwrite methods and add the touch |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I was wondering is there any way I can achieve something like
whenever any user's role/permissions get changed, the user's
updated_at
field also gets updated.Currently I'm doing
It works, but I've to call it every time I do some changes on permissions/roles.
how can I automate this?
Maybe something like this: https://laravel.com/docs/8.x/eloquent-relationships#touching-parent-timestamps
Beta Was this translation helpful? Give feedback.
All reactions