PamPermission
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
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.
from
RbacPermissionTrait
static PamPermission
newModelQuery()
No description
static PamPermission
newQuery()
No description
static PamPermission
query()
No description
Details
in
RbacPermissionTrait at line 18
BelongsToMany
roles()
No description
in
RbacPermissionTrait 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.
这个地方有点绕, 是我所属的所有角色中同步为空, 删除关于我的信息
at line 31
static PamPermission
newModelQuery()
No description
at line 31
static PamPermission
newQuery()
No description
at line 31
static PamPermission
query()
No description