Get Direct Abilities - Not via Roles
Aniket-IN opened this issue Β· comments
Aniket Das commented
Hi π,
I was just getting started with this pacakge, needed a small help.
I'm trying to get direct abilities of a user, saw there'a method $user->getAbilities()
but, this method includes abilities assigned via roles as well π€.
How do I get only abilities those are directly assigned to the user and not via roles.
Thank you π.
Joseph Silber commented
You can get those via the regular abilities
Eloquent relationship:
$user->abilities
Aniket Das commented
Exactly what I neded.
Thank you so much for the amazing package. π