diff --git a/app/Models/Node.php b/app/Models/Node.php index 000370b9..fce3b335 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -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); } -} + +} \ No newline at end of file diff --git a/database/migrations/2018_03_15_124536_add_description_to_nodes.php b/database/migrations/2018_03_15_124536_add_description_to_nodes.php new file mode 100644 index 00000000..9b92e3c3 --- /dev/null +++ b/database/migrations/2018_03_15_124536_add_description_to_nodes.php @@ -0,0 +1,33 @@ +text('description')->after('name'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('nodes', function (Blueprint $table) { + $table->dropColumn('description'); + }); + } + +} \ No newline at end of file diff --git a/resources/themes/pterodactyl/admin/nodes/new.blade.php b/resources/themes/pterodactyl/admin/nodes/new.blade.php index f766800d..0064ed89 100644 --- a/resources/themes/pterodactyl/admin/nodes/new.blade.php +++ b/resources/themes/pterodactyl/admin/nodes/new.blade.php @@ -32,15 +32,15 @@
Character limits: a-zA-Z0-9_.- and [Space] (min 1, max 100 characters).
{{ $node->description }}
+ Character limits: a-zA-Z0-9_.- and [Space] (min 1, max 100 characters).
Please enter domain name (e.g node.example.com) to be used for connecting to the daemon. An IP address may only be used if you are not using SSL for this node.
- Why?
-