Let's say that I have three users in my system Sam
, John
and Sarah
.
All three have a role of editor
which gives them permission to create article
, edit article
, publish article
and delete article
.
Now for some reason, I don't want Sam
to have permission to delete article
but still have the role of editor
.
How can I achieve this in Laravel with this spatie/laravel-permission package?
(Assume that I may have to do such operation on a somewhat regular basis and there are after some time I may assign back delete article
again the Sam
. And there are way too many permissions in any role, so i can't do it manually.)