fix nullable description

This commit is contained in:
aslan 2024-06-11 09:41:13 +03:00
parent 7f7d6a6a73
commit 4093e2ce51
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ class StoreDocumentRequest extends FormRequest
{
return [
'name' => 'required|string|max:255',
'description' => 'string',
'description' => 'string|nullable',
'position' => 'required|int|numeric|max:255',
'document' => 'required|file',
'admission_id' => 'required|int|numeric|max:1000',

View File

@ -21,7 +21,7 @@ class UpdateDocumentRequest extends FormRequest
"unique:documents,name,{$this->document->id}",
],
'position' => 'required|int|numeric|max:255',
'description' => 'string',
'description' => 'string|nullable',
'admission_id' => 'required|int|numeric|max:1000',
];
}