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
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.

Details

array getFormFieldsHandleUserPermissions(Model|User $object, array $fields)

Retrieve user permissions fields.

Parameters

Model|User $object
array $fields

Return Value

array

afterSaveHandleUserPermissions(Model|User $object, array $fields)

Function executed after save on user form.

Parameters

Model|User $object
array $fields

protected array getUserPermissionsFields(Model|User $user, array $fields)

Get user permissions fields.

Parameters

Model|User $user
array $fields

Return Value

array

int|bool getCountByStatusSlugHandleUserPermissions(string $slug, array $scope = [])

Retrieve count of user for 'activated' and 'pending' status slug.

Parameters

string $slug
array $scope

Return Value

int|bool