Show accounting link on accounts that are linked
This commit is contained in:
@@ -45,13 +45,6 @@ class Account extends Model implements IDs
|
||||
return $this->hasMany(Charge::class);
|
||||
}
|
||||
|
||||
public function providers()
|
||||
{
|
||||
return $this->belongsToMany(ProviderOauth::class,'account_provider')
|
||||
->where('account_provider.site_id',$this->site_id)
|
||||
->withPivot('ref','synctoken','created_at','updated_at');
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the country the user belongs to
|
||||
*/
|
||||
@@ -85,6 +78,13 @@ class Account extends Model implements IDs
|
||||
return $this->hasMany(Payment::class);
|
||||
}
|
||||
|
||||
public function providers()
|
||||
{
|
||||
return $this->belongsToMany(ProviderOauth::class,'account_provider')
|
||||
->where('account_provider.site_id',$this->site_id)
|
||||
->withPivot('ref','synctoken','created_at','updated_at');
|
||||
}
|
||||
|
||||
public function services($active=FALSE)
|
||||
{
|
||||
$query = $this->hasMany(Service::class);
|
||||
|
Reference in New Issue
Block a user