mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-03 06:56:15 +00:00
Add load balancer (#453)
This commit is contained in:
@ -16,6 +16,7 @@
|
||||
use Illuminate\Database\Eloquent\Relations\HasMany;
|
||||
use Illuminate\Database\Eloquent\Relations\HasOne;
|
||||
use Illuminate\Database\Eloquent\Relations\MorphToMany;
|
||||
use Illuminate\Support\Collection;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
/**
|
||||
@ -47,6 +48,7 @@
|
||||
* @property ?Ssl $activeSsl
|
||||
* @property string $ssh_key_name
|
||||
* @property ?SourceControl $sourceControl
|
||||
* @property Collection<LoadBalancerServer> $loadBalancerServers
|
||||
*
|
||||
* @TODO: Add nodejs_version column
|
||||
*/
|
||||
@ -332,4 +334,9 @@ public function webserver(): Webserver
|
||||
|
||||
return $webserver;
|
||||
}
|
||||
|
||||
public function loadBalancerServers(): HasMany
|
||||
{
|
||||
return $this->hasMany(LoadBalancerServer::class, 'load_balancer_id');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user