Closed obrunsmann closed 8 months ago
The way to handle it in the UI would be to have a list of actual Ability
instances. For example:
$available = Bouncer::ability()->pluck('title', 'id');
$granted = $role->getAbilities();
And then have the user toggle those directly.
To implement a settings UI it is necessary to find out if a role can own or manage a model. So I'd suggest a method like