Mpociot\Teamwork\Traits\UserHasTeams::isOwnerOfTeam PHP Method

isOwnerOfTeam() public method

Returns if the user owns the given team
public isOwnerOfTeam ( mixed $team ) : boolean
$team mixed
return boolean
    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;
    }