update: change validation for file size material for update

This commit is contained in:
abiyasa05 2025-06-10 21:39:08 +07:00
parent 39183d44ff
commit 8652a61241

View File

@ -73,6 +73,7 @@ public function update(Request $request, $id)
'title' => 'required|string',
'description' => 'nullable|string',
'file_path' => 'nullable|file|mimes:pdf,doc,docx,txt|max:1048576'
]);
$material = LiteracyMaterial::findOrFail($id);