Integration with spatie/laravel-permission: Log when permission gets assigned to role #1150
Unanswered
lucacastelnuovo
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Link to similar question: #996 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
My project uses both spatie/laravel-activitylog and spatie/laravel-permission.
By extending the
Spatie\Permission\Models\Role
toApp\Models\Role
, I can log when a role gets created and when it gets deleted.Does somebody know how I would log when permission gets "given" to a role using
givePermissionTo()
?App\Models\Role.php
Beta Was this translation helpful? Give feedback.
All reactions