diff --git a/app/Models/Echoarea.php b/app/Models/Echoarea.php index 29a49eb..5434ec8 100644 --- a/app/Models/Echoarea.php +++ b/app/Models/Echoarea.php @@ -56,6 +56,12 @@ class Echoarea extends Model return $this->belongsToMany(Address::class); } + public function addresses_active() + { + return $this->belongsToMany(Address::class) + ->activeFTN(); + } + public function domain() { return $this->belongsTo(Domain::class);