Added Echoarea::addresses_active() to find addresses that are connected to the area, and active
This commit is contained in:
parent
79b180f453
commit
e9895aee45
@ -56,6 +56,12 @@ class Echoarea extends Model
|
|||||||
return $this->belongsToMany(Address::class);
|
return $this->belongsToMany(Address::class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function addresses_active()
|
||||||
|
{
|
||||||
|
return $this->belongsToMany(Address::class)
|
||||||
|
->activeFTN();
|
||||||
|
}
|
||||||
|
|
||||||
public function domain()
|
public function domain()
|
||||||
{
|
{
|
||||||
return $this->belongsTo(Domain::class);
|
return $this->belongsTo(Domain::class);
|
||||||
|
Loading…
Reference in New Issue
Block a user