Property | Type | Description | |
---|---|---|---|
$fillable | array | The attributes that are fillable via mass assignment. | |
$table | string | The database table used by the model. |
Method | Description | |
---|---|---|
assignRole ( integer $roleId = null ) : boolean | Assigns the given role to the permission. | |
revokeAllRoles ( ) : boolean | Revokes all roles from the permission. | |
revokeRole ( integer $roleId = '' ) : boolean | Revokes the given role from the permission. | |
roles ( ) : |
Permissions can belong to many roles. | |
syncRoles ( array $roleIds = [] ) : boolean | Syncs the given role(s) with the permission. |
public assignRole ( integer $roleId = null ) : boolean | ||
$roleId | integer | |
return | boolean |
public revokeAllRoles ( ) : boolean | ||
return | boolean |
public revokeRole ( integer $roleId = '' ) : boolean | ||
$roleId | integer | |
return | boolean |
public roles ( ) : |
||
return |
protected array $fillable | ||
return | array |
protected string $table | ||
return | string |