class SelfDemotionGuard

Methods

handle(Saving $event)

Prevent an admin from removing their admin permission via the API.

Details

handle(Saving $event)

Prevent an admin from removing their admin permission via the API.

Parameters

Saving $event

Exceptions

PermissionDeniedException