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

isOwner() public method

Returns if the user owns a team
public isOwner ( ) : boolean
return boolean
    public function isOwner()
    {
        return $this->teams()->where("owner_id", "=", $this->getKey())->first() ? true : false;
    }