src/Mpociot/Teamwork/Teamwork.php
public function hasPendingInvite( $email, $team )
    {
        if( is_object( $team ) )
        {
            $team = $team->getKey();
        }
        if( is_array( $team ) )
        {
            $team = $team["id"];
        }
        return $this->app->make(Config::get('teamwork.invite_model'))->where('email', "=", $email)->where('team_id', "=", $team )->first() ? true : false;
    }
public function hasPendingInvite( $email, $team )
    {
        if( is_object( $team ) )
        {
            $team = $team->getKey();
        }
        if( is_array( $team ) )
        {
            $team = $team["id"];
        }
        return $this->app->make(Config::get('teamwork.invite_model'))->where('email', "=", $email)->where('team_id', "=", $team )->first() ? true : false;
    }
public function hasPendingInvite ( $ email , $ team ) { if ( is_object ( $ team ) ) { $ team = $ team -> getKey ( ) ; } if ( is_array ( $ team ) ) { $ team = $ team [ "id" ] ; } return $ this -> app -> make ( Config :: get ( 'teamwork.invite_model' ) ) -> where ( 'email' , "=" , $ email ) -> where ( 'team_id' , "=" , $ team ) -> first ( ) ? true : false ; }
Checks if the given email address has a pending invite for the
provided Team
@param $email
@param Team|array|integer $team
@return bool
Checks if the given email address has a pending invite for the provided Team