Merge pull request #1939 from Sir3lit/optionaldesc

Allow description fields to be optional
This commit is contained in:
Dane Everitt 2020-04-23 20:37:02 -07:00 committed by GitHub
commit 0385d2a05c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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',
];
}
}