HandleUserPermissions
trait HandleUserPermissions (View source)
Methods
array
getFormFieldsHandleUserPermissions(Model|User $object, array $fields)
Retrieve user permissions fields.
afterSaveHandleUserPermissions(Model|User $object, array $fields)
Function executed after save on user form.
array
int|bool
getCountByStatusSlugHandleUserPermissions(string $slug, array $scope = [])
Retrieve count of user for 'activated' and 'pending' status slug.
Details
array
getFormFieldsHandleUserPermissions(Model|User $object, array $fields)
Retrieve user permissions fields.
afterSaveHandleUserPermissions(Model|User $object, array $fields)
Function executed after save on user form.
protected array
getUserPermissionsFields(Model|User $user, array $fields)
Get user permissions fields.
int|bool
getCountByStatusSlugHandleUserPermissions(string $slug, array $scope = [])
Retrieve count of user for 'activated' and 'pending' status slug.