update: change validation for file size material for update function
This commit is contained in:
parent
12649f5573
commit
1959ca9723
|
|
@ -72,7 +72,7 @@ public function update(Request $request, $id)
|
||||||
$request->validate([
|
$request->validate([
|
||||||
'title' => 'required|string',
|
'title' => 'required|string',
|
||||||
'description' => 'nullable|string',
|
'description' => 'nullable|string',
|
||||||
'file_path' => 'nullable|file|mimes:pdf,doc,docx,txt|max:2048'
|
'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