src/Mpociot/Teamwork/Traits/TeamworkTeamTrait.php
public function hasUser( Model $user )
    {
        return $this->users()->where( $user->getKeyName(), "=", $user->getKey() )->first() ? true : false;
    }
public function hasUser( Model $user )
    {
        return $this->users()->where( $user->getKeyName(), "=", $user->getKey() )->first() ? true : false;
    }
public function hasUser ( Model $ user ) { return $ this -> users ( ) -> where ( $ user -> getKeyName ( ) , "=" , $ user -> getKey ( ) ) -> first ( ) ? true : false ; }
Helper function to determine if a user is part
of this team

@param Model $user
@return bool
Helper function to determine if a user is part of this team