src/Mpociot/Teamwork/Traits/UserHasTeams.php
public function isOwnerOfTeam( $team )
    {
        $team_id        = $this->retrieveTeamId( $team );
        return ( $this->teams()
            ->where('owner_id', $this->getKey())
            ->where('team_id', $team_id)->first()
        ) ? true : false;
    }
public function isOwnerOfTeam( $team )
    {
        $team_id        = $this->retrieveTeamId( $team );
        return ( $this->teams()
            ->where('owner_id', $this->getKey())
            ->where('team_id', $team_id)->first()
        ) ? true : false;
    }
public function isOwnerOfTeam ( $ team ) { $ team_id = $ this -> retrieveTeamId ( $ team ) ; return ( $ this -> teams ( ) -> where ( 'owner_id' , $ this -> getKey ( ) ) -> where ( 'team_id' , $ team_id ) -> first ( ) ) ? true : false ; }
Returns if the user owns the given team

@param mixed $team
@return bool
Returns if the user owns the given team