src/Seeds/UsersGroupsTableSeeder.php
protected function matchUser($email, $group)
    {
        return Credentials::getUserProvider()->findByLogin($email)->addGroup(Credentials::getGroupProvider()->findByName($group));
    }
protected function matchUser($email, $group)
    {
        return Credentials::getUserProvider()->findByLogin($email)->addGroup(Credentials::getGroupProvider()->findByName($group));
    }
protected function matchUser ( $ email , $ group ) { return Credentials :: getUserProvider ( ) -> findByLogin ( $ email ) -> addGroup ( Credentials :: getGroupProvider ( ) -> findByName ( $ group ) ) ; }
Add the user by email to a group.

@param  string  $email
@param  string  $group
@return void
Add the user by email to a group .