public function hasGroup($group)
    {
        if (is_string($group)) {
            return $this->groups->contains('name', $group);
        }

        return ! ! $group->intersect($this->groups)->count();
    }
public function hasGroup($group)
    {
        if (is_string($group)) {
            return $this->groups->contains('name', $group);
        }

        return ! ! $group->intersect($this->groups)->count();
    }
public function hasGroup ( $ group ) { if ( is_string ( $ group ) ) { return $ this -> groups -> contains ( 'name' , $ group ) ; } return ! ! $ group -> intersect ( $ this -> groups ) -> count ( ) ; }
Determine if the user is inthe given group.

@param  mixed $group
@return bool
Determine if the user is inthe given group .