class Role extends Model

Traits

Properties

protected array $fillable Attributes that are mass assignable
protected array $hidden Attributes that are hidden

Methods

Model
permissionModel()

Make permission model

users()

Get the user for the roles

BelongsToMany
permissions()

Get the permission for roles

mixed
givePermissionTo($permission)

Grant the permission to a role

revokePermissionTo($permission)

No description

Details

in MakePermissionModel at line 15
Model permissionModel()

Make permission model

Return Value

Model

Exceptions

Exception

at line 33
users()

Get the user for the roles

at line 43
BelongsToMany permissions()

Get the permission for roles

Return Value

BelongsToMany

at line 54
mixed givePermissionTo($permission)

Grant the permission to a role

Parameters

$permission \BRKsDeadPool\Gate\Models\Permission

Return Value

mixed

at line 69
revokePermissionTo($permission)

Parameters

$permission