Renamed the field and made some improvements

This commit is contained in:
stanjg 2018-05-31 16:34:35 +02:00
parent e648e50d90
commit 013dde75ae
No known key found for this signature in database
GPG key ID: 27D9DF9D28935303
8 changed files with 17 additions and 16 deletions

View file

@ -48,7 +48,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
'daemonSFTP' => 'integer',
'behind_proxy' => 'boolean',
'public' => 'boolean',
'maintenance' => 'boolean',
'maintenance_mode' => 'boolean',
];
/**
@ -63,7 +63,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
'disk_overallocate', 'upload_size',
'daemonSecret', 'daemonBase',
'daemonSFTP', 'daemonListen',
'description', 'maintenance',
'description', 'maintenance_mode',
];
/**
@ -112,7 +112,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
'daemonBase' => 'regex:/^([\/][\d\w.\-\/]+)$/',
'daemonSFTP' => 'numeric|between:1024,65535',
'daemonListen' => 'numeric|between:1024,65535',
'maintenance' => 'boolean',
'maintenance_mode' => 'boolean',
];
/**
@ -128,7 +128,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
'daemonBase' => '/srv/daemon-data',
'daemonSFTP' => 2022,
'daemonListen' => 8080,
'maintenance' => false,
'maintenance_mode' => false,
];
/**