改进 内容最长 255

This commit is contained in:
iVampireSP.com 2023-01-30 00:39:40 +08:00
parent 0139531973
commit 95c36b998f
No known key found for this signature in database
GPG Key ID: 2F7B001CA27A8132

View File

@ -24,7 +24,7 @@ public function store(Request $request): JsonResponse
{ {
$this->validate($request, [ $this->validate($request, [
'title' => 'required|max:255', 'title' => 'required|max:255',
'content' => 'required', 'content' => 'required|string|max:255',
'module_id' => 'nullable|sometimes|string|exists:modules,id', 'module_id' => 'nullable|sometimes|string|exists:modules,id',
'host_id' => 'nullable|sometimes|exists:hosts,id', 'host_id' => 'nullable|sometimes|exists:hosts,id',
]); ]);