Devise
Class

Devise\Users\Groups\GroupsRepository

class GroupsRepository

Methods

__construct(DvsGroup $Group, DvsUser $User)

DvsGroup findById(int $id)

Find group by id

DvsGroup findByName(string $name)

Find group by name

array groupList()

List all the groups

Collection groups()

Paginated list of groups

array groupListForUser(integer $userId)

Get a list of groups for the given user id

Details

at line 9
public __construct(DvsGroup $Group, DvsUser $User)

Parameters

DvsGroup $Group
DvsUser $User

at line 21
public DvsGroup findById(int $id)

Find group by id

Parameters

int $id

Return Value

DvsGroup

at line 32
public DvsGroup findByName(string $name)

Find group by name

Parameters

string $name

Return Value

DvsGroup

at line 42
public array groupList()

List all the groups

Return Value

array

at line 52
public Collection groups()

Paginated list of groups

Return Value

Collection

at line 63
public array groupListForUser(integer $userId)

Get a list of groups for the given user id

Parameters

integer $userId

Return Value

array