refactor(Application): rename network_aliases to custom_network_aliases across the application for clarity and consistency

This commit is contained in:
Andras Bacsai
2025-04-09 08:42:50 +02:00
parent fcf597fb16
commit 68bd945b09
5 changed files with 13 additions and 14 deletions

View File

@@ -45,7 +45,7 @@ use Visus\Cuid2\Cuid2;
'start_command' => ['type' => 'string', 'description' => 'Start command.'],
'ports_exposes' => ['type' => 'string', 'description' => 'Ports exposes.'],
'ports_mappings' => ['type' => 'string', 'nullable' => true, 'description' => 'Ports mappings.'],
'network_aliases' => ['type' => 'string', 'nullable' => true, 'description' => 'Network aliases for Docker container.'],
'custom_network_aliases' => ['type' => 'string', 'nullable' => true, 'description' => 'Network aliases for Docker container.'],
'base_directory' => ['type' => 'string', 'description' => 'Base directory for all commands.'],
'publish_directory' => ['type' => 'string', 'description' => 'Publish directory.'],
'health_check_enabled' => ['type' => 'boolean', 'description' => 'Health check enabled.'],
@@ -116,9 +116,9 @@ class Application extends BaseModel
protected $appends = ['server_status'];
protected $casts = ['network_aliases' => 'array'];
protected $casts = ['custom_network_aliases' => 'array'];
public function networkAliases(): Attribute
public function customNetworkAliases(): Attribute
{
return Attribute::make(
set: function ($value) {