Commit ce80aac5 by Bagus Pambudi
parents 524c2ac6 327c1c0e
...@@ -117,12 +117,12 @@ class FileController extends Controller ...@@ -117,12 +117,12 @@ class FileController extends Controller
$request -> validate([ $request -> validate([
'categories_file' => 'required', 'categories_file' => 'required',
'title' => 'required', 'title' => 'required',
'file' => 'required|mimes:jpg,jpeg,png,doc,docx,pdf,xlsx,mp3,mp4,mkv,mpeg|max : 5120' 'file' => 'mimes:jpg,jpeg,png,doc,docx,pdf,xlsx,mp3,mp4,mkv,mpeg|max : 5120'
], [ ], [
'categories_file.required' => 'Kategori dokumen wajib diisi', 'categories_file.required' => 'Kategori dokumen wajib diisi',
'title.required' => 'Nama dokumen wajib diisi', 'title.required' => 'Nama dokumen wajib diisi',
// 'title.max' => 'Nama dokumen terlalu panjang', // 'title.max' => 'Nama dokumen terlalu panjang',
'file.required' => 'File wajib diupload', // 'file.required' => 'File wajib diupload',
'file.mimes' => 'File yang diupload harus berupa jpg, jpeg, png, doc, docx, pdf, xlsx, mp3, mp4, mkv, atau mpeg', 'file.mimes' => 'File yang diupload harus berupa jpg, jpeg, png, doc, docx, pdf, xlsx, mp3, mp4, mkv, atau mpeg',
'file.max' => 'Ukuran gambar maksimal 5 MB' 'file.max' => 'Ukuran gambar maksimal 5 MB'
]); ]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment