When we have multiple addresses, add we want a specific address, return the lowest role, or if strict mode enable, return the lowest role that is higher than the target

This commit is contained in:
2023-12-14 16:53:56 +11:00
parent 301fc33d2f
commit 27c050dc38
6 changed files with 24 additions and 10 deletions

View File

@@ -65,7 +65,9 @@ class System extends Model
public function akas()
{
return $this->hasMany(Address::class)
->active();
->active()
->FTNorder()
->orderBy('role','ASC');
}
public function mailers()