Role
class Role extends Model
Traits
Properties
protected array | $fillable | Attributes that are mass assignable | |
$hidden | Attributes that are hidden |
Methods
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
at line 33
users()
Get the user for the roles
at line 43
BelongsToMany
permissions()
Get the permission for roles
at line 54
mixed
givePermissionTo($permission)
Grant the permission to a role