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:
parent
90e2d0d72a
commit
21491e3aaa
9 changed files with 67 additions and 11 deletions
|
@ -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',
|
||||
];
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue