trait RbacPermissionTrait

权限 trait

Methods

BelongsToMany
roles()

No description

static void
boot()

Boot the permission model Attach event listener to remove the many-to-many records when trying to delete Will NOT delete any records if the permission model uses soft deletes.

Details

at line 18
BelongsToMany roles()

No description

Return Value

BelongsToMany

at line 39
static void boot()

Boot the permission model Attach event listener to remove the many-to-many records when trying to delete Will NOT delete any records if the permission model uses soft deletes.

这个地方有点绕, 是我所属的所有角色中同步为空, 删除关于我的信息

Return Value

void