public function owner()
    {
        $model = getenv('BRAINTREE_MODEL') ?: config('services.braintree.model', 'App\\User');

        $model = new $model;

        return $this->belongsTo(get_class($model), $model->getForeignKey());
    }
public function owner()
    {
        $model = getenv('BRAINTREE_MODEL') ?: config('services.braintree.model', 'App\\User');

        $model = new $model;

        return $this->belongsTo(get_class($model), $model->getForeignKey());
    }
public function owner ( ) { $ model = getenv ( 'BRAINTREE_MODEL' ) ? : config ( 'services.braintree.model' , 'App\\User' ) ; $ model = new $ model ; return $ this -> belongsTo ( get_class ( $ model ) , $ model -> getForeignKey ( ) ) ; }
Get the model related to the subscription.
Get the model related to the subscription .