Devise
Class

Devise\User\Repositories\GroupsRepository

class GroupsRepository

Methods

__construct(Group $Group, User $User)

Group findById(int $id)

Find group by id

Group 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(Group $Group, User $User)

Parameters

Group $Group
User $User

at line 21
public Group findById(int $id)

Find group by id

Parameters

int $id

Return Value

Group

at line 32
public Group findByName(string $name)

Find group by name

Parameters

string $name

Return Value

Group

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