src/Mpociot/Teamwork/Traits/TeamworkTeamTrait.php
public function owner()
    {
        $userModel   = Config::get( 'teamwork.user_model' );
        $userKeyName = ( new $userModel() )->getKeyName();
        return $this->hasOne(Config::get('teamwork.user_model'), $userKeyName, "owner_id");
    }
public function owner()
    {
        $userModel   = Config::get( 'teamwork.user_model' );
        $userKeyName = ( new $userModel() )->getKeyName();
        return $this->hasOne(Config::get('teamwork.user_model'), $userKeyName, "owner_id");
    }
public function owner ( ) { $ userModel = Config :: get ( 'teamwork.user_model' ) ; $ userKeyName = ( new $ userModel ( ) ) -> getKeyName ( ) ; return $ this -> hasOne ( Config :: get ( 'teamwork.user_model' ) , $ userKeyName , "owner_id" ) ; }
Has-One relation with the user model.
This indicates the owner of the team

@return \Illuminate\Database\Eloquent\Relations\HasOne
Has - One relation with the user model . This indicates the owner of the team