Commit fa1840ba by Bagus Pambudi

tambah mimes cover berita

parent b43140e6
...@@ -95,7 +95,9 @@ class PostController extends Controller ...@@ -95,7 +95,9 @@ class PostController extends Controller
'categories' => 'required', 'categories' => 'required',
'content' => 'required|min:3', 'content' => 'required|min:3',
'post_date' => 'required', 'post_date' => 'required',
'keys' => 'max:100' 'keys' => 'max:100',
'thumbnail' => 'required|mimes:jpg,jpeg,png|max : 3072'
], [ ], [
'title.required' => 'Judul wajib diisi', 'title.required' => 'Judul wajib diisi',
// 'title.regex' => 'Judul tidak valid! Judul hanya berupa angka dan huruf', // 'title.regex' => 'Judul tidak valid! Judul hanya berupa angka dan huruf',
......
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