mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-27 18:43:45 +02:00
Allow descrition field to be optional
Allows for Nest, Node, Location and Egg description fields to be blank / nullable. Removed "required" wording next to them aswell
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Pterodactyl\Models;
|
||||
* @property string $uuid
|
||||
* @property string $author
|
||||
* @property string $name
|
||||
* @property string $description
|
||||
* @property string|null $description
|
||||
* @property \Carbon\Carbon $created_at
|
||||
* @property \Carbon\Carbon $updated_at
|
||||
*
|
||||
@@ -46,7 +46,7 @@ class Nest extends Model
|
||||
public static $validationRules = [
|
||||
'author' => 'required|string|email',
|
||||
'name' => 'required|string|max:255',
|
||||
'description' => 'sometimes|nullable|string',
|
||||
'description' => 'nullable|string',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user