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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user