Devise\Users\Groups\GroupsRepository::groupListForUser PHP 메소드

groupListForUser() 공개 메소드

Get a list of groups for the given user id
public groupListForUser ( integer $userId ) : array
$userId integer
리턴 array
    public function groupListForUser($userId)
    {
        return $this->User->findOrFail($userId)->groups()->lists('name', 'id')->all();
    }