src/Palmabit/Authentication/Classes/SentryAuthenticator.php
public function hasGroup($name) {
    $group = App::make('group_repository')->findByName($name);
    $user = $this->getLoggedUser();

    if (!$user) {
      return false;
    }
    return $user->inGroup($group);
  }
public function hasGroup($name) {
    $group = App::make('group_repository')->findByName($name);
    $user = $this->getLoggedUser();

    if (!$user) {
      return false;
    }
    return $user->inGroup($group);
  }
public function hasGroup ( $ name ) { $ group = App :: make ( 'group_repository' ) -> findByName ( $ name ) ; $ user = $ this -> getLoggedUser ( ) ; if ( ! $ user ) { return false ; } return $ user -> inGroup ( $ group ) ; }
Check if the current user has the given group

@param $name
@return mixed
Check if the current user has the given group