mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 05:43:45 +02:00
Add description field to nodes (#1065)
This commit is contained in:
@@ -63,6 +63,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
|
||||
'disk_overallocate', 'upload_size',
|
||||
'daemonSecret', 'daemonBase',
|
||||
'daemonSFTP', 'daemonListen',
|
||||
'description',
|
||||
];
|
||||
|
||||
/**
|
||||
@@ -99,6 +100,7 @@ class Node extends Model implements CleansAttributes, ValidableContract
|
||||
*/
|
||||
protected static $dataIntegrityRules = [
|
||||
'name' => 'regex:/^([\w .-]{1,100})$/',
|
||||
'description' => 'string',
|
||||
'location_id' => 'exists:locations,id',
|
||||
'public' => 'boolean',
|
||||
'fqdn' => 'string',
|
||||
@@ -226,4 +228,5 @@ class Node extends Model implements CleansAttributes, ValidableContract
|
||||
{
|
||||
return $this->hasMany(Allocation::class);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user