update: change validation for file size material for update
This commit is contained in:
parent
1959ca9723
commit
3493e49162
|
|
@ -73,6 +73,7 @@ public function update(Request $request, $id)
|
||||||
'title' => 'required|string',
|
'title' => 'required|string',
|
||||||
'description' => 'nullable|string',
|
'description' => 'nullable|string',
|
||||||
'file_path' => 'nullable|file|mimes:pdf,doc,docx,txt|max:1048576'
|
'file_path' => 'nullable|file|mimes:pdf,doc,docx,txt|max:1048576'
|
||||||
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$material = LiteracyMaterial::findOrFail($id);
|
$material = LiteracyMaterial::findOrFail($id);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user