trait HandleRolePermissions (View source)

Methods

array
getFormFieldsHandleRolePermissions(TwillModelContract|Role $object, array $fields)

Retrieve role permissions fields

afterSaveHandleRolePermissions(TwillModelContract|Role $object, array $fields)

Function executed after save on role form

Details

array getFormFieldsHandleRolePermissions(TwillModelContract|Role $object, array $fields)

Retrieve role permissions fields

Parameters

TwillModelContract|Role $object
array $fields

Return Value

array

afterSaveHandleRolePermissions(TwillModelContract|Role $object, array $fields)

Function executed after save on role form

Parameters

TwillModelContract|Role $object
array $fields