Added Echoarea::addresses_active() to find addresses that are connected to the area, and active

This commit is contained in:
Deon George 2024-04-26 16:21:58 +10:00
parent 79b180f453
commit e9895aee45

View File

@ -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);