public function ownsTeam($team)
    {
        if (is_null($team->owner_id) || is_null($this->id)) {
            return false;
        }

        return $this->id === $team->owner_id;
    }
public function ownsTeam($team)
    {
        if (is_null($team->owner_id) || is_null($this->id)) {
            return false;
        }

        return $this->id === $team->owner_id;
    }
public function ownsTeam ( $ team ) { if ( is_null ( $ team -> owner_id ) || is_null ( $ this -> id ) ) { return false ; } return $ this -> id === $ team -> owner_id ; }
Determine if the given team is owned by the user.

@param  \Laravel\Spark\Teams\Team  $team
@return bool
Determine if the given team is owned by the user .