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
|
@ -13,7 +13,7 @@ use Illuminate\Contracts\Encryption\Encrypter;
|
|||
* @property string $uuid
|
||||
* @property bool $public
|
||||
* @property string $name
|
||||
* @property string $description
|
||||
* @property string|null $description
|
||||
* @property int $location_id
|
||||
* @property string $fqdn
|
||||
* @property string $scheme
|
||||
|
@ -111,7 +111,7 @@ class Node extends Model
|
|||
*/
|
||||
public static $validationRules = [
|
||||
'name' => 'required|regex:/^([\w .-]{1,100})$/',
|
||||
'description' => 'string',
|
||||
'description' => 'string|nullable',
|
||||
'location_id' => 'required|exists:locations,id',
|
||||
'public' => 'boolean',
|
||||
'fqdn' => 'required|string',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue