Added intuit payments
This commit is contained in:
@@ -31,6 +31,13 @@ class ProviderOauth extends Model
|
||||
->withPivot('ref','synctoken','created_at','updated_at');
|
||||
}
|
||||
|
||||
public function payments()
|
||||
{
|
||||
return $this->belongsToMany(Payment::class,'payment__provider')
|
||||
->where('payment__provider.site_id',$this->site_id)
|
||||
->withPivot('ref','synctoken','created_at','updated_at');
|
||||
}
|
||||
|
||||
public function taxes()
|
||||
{
|
||||
return $this->belongsToMany(Tax::class,'tax__provider')
|
||||
|
Reference in New Issue
Block a user