fix nullable description
This commit is contained in:
parent
7f7d6a6a73
commit
4093e2ce51
|
@ -16,7 +16,7 @@ class StoreDocumentRequest extends FormRequest
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'name' => 'required|string|max:255',
|
'name' => 'required|string|max:255',
|
||||||
'description' => 'string',
|
'description' => 'string|nullable',
|
||||||
'position' => 'required|int|numeric|max:255',
|
'position' => 'required|int|numeric|max:255',
|
||||||
'document' => 'required|file',
|
'document' => 'required|file',
|
||||||
'admission_id' => 'required|int|numeric|max:1000',
|
'admission_id' => 'required|int|numeric|max:1000',
|
||||||
|
|
|
@ -21,7 +21,7 @@ class UpdateDocumentRequest extends FormRequest
|
||||||
"unique:documents,name,{$this->document->id}",
|
"unique:documents,name,{$this->document->id}",
|
||||||
],
|
],
|
||||||
'position' => 'required|int|numeric|max:255',
|
'position' => 'required|int|numeric|max:255',
|
||||||
'description' => 'string',
|
'description' => 'string|nullable',
|
||||||
'admission_id' => 'required|int|numeric|max:1000',
|
'admission_id' => 'required|int|numeric|max:1000',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue