src/Palmabit/Authentication/Repository/SentryUserRepository.php
public function addGroup($user_id, $group_id) {
    try {
      $group = Group::findOrFail($group_id);
      $user = User::findOrFail($user_id);
      $user->addGroup($group);
    } catch (ModelNotFoundException $e) {
      throw new NotFoundException;
    }
  }
public function addGroup($user_id, $group_id) {
    try {
      $group = Group::findOrFail($group_id);
      $user = User::findOrFail($user_id);
      $user->addGroup($group);
    } catch (ModelNotFoundException $e) {
      throw new NotFoundException;
    }
  }
public function addGroup ( $ user_id , $ group_id ) { try { $ group = Group :: findOrFail ( $ group_id ) ; $ user = User :: findOrFail ( $ user_id ) ; $ user -> addGroup ( $ group ) ; } catch ( ModelNotFoundException $ e ) { throw new NotFoundException ; } }
Add a group to the user

@param $user_id
@param $group_id
@return mixed|void
@throws \Palmabit\Authentication\Exceptions\UserNotFoundException
Add a group to the user