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:
AreYouScared 2020-04-17 20:52:40 -04:00
parent 90e2d0d72a
commit 21491e3aaa
9 changed files with 67 additions and 11 deletions

View file

@ -20,7 +20,7 @@ class EggFormRequest extends AdminFormRequest
{
$rules = [
'name' => 'required|string|max:255',
'description' => 'required|string',
'description' => 'nullable|string',
'docker_image' => 'required|string|max:255',
'startup' => 'required|string',
'config_from' => 'sometimes|bail|nullable|numeric',

View file

@ -20,7 +20,7 @@ class StoreNestFormRequest extends AdminFormRequest
{
return [
'name' => 'required|string|min:1|max:255',
'description' => 'required|nullable|string',
'description' => 'string|nullable|',
];
}
}