class PamPermission extends Model implements RbacPermissionContract mixin Eloquent

用户权限

Traits

权限 trait

Properties

$timestamps
protected $table
protected $fillable
int $id
string $name
string $title
string $description
string $group
string $root
string $module
string $type
Collection|PamRole[] read-only $roles

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.

static PamPermission
newModelQuery()

No description

static PamPermission
newQuery()

No description

static PamPermission
query()

No description

Details

BelongsToMany roles()

No description

Return Value

BelongsToMany

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

at line 31
static PamPermission newModelQuery()

No description

Return Value

PamPermission

at line 31
static PamPermission newQuery()

No description

Return Value

PamPermission

at line 31
static PamPermission query()

No description

Return Value

PamPermission