You must now set a roleToAssign
and restrictedRoles
to the plugin:
use Shanerbaner82\PanelRoles\PanelRoles;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
return $panel
...
->plugin(PanelRoles::make()
->roleToAssign('developer')
->restrictedRoles(['admin', 'developer']),
)
}
}