Commit 021c6f9a by Triyah Fatmawati

Fix validasi

parent 643287ed
......@@ -253,9 +253,9 @@ class PageController extends Controller
$request['content_zh'] = strip_tags($request->content_zh);
$request['title'] = strip_tags($request->title);
$request['title_en'] = strip_tags($request->title_en);
$request['title_en'] = strip_tags($request->title_de);
$request['title_en'] = strip_tags($request->title_sa);
$request['title_en'] = strip_tags($request->title_zh);
$request['title_de'] = strip_tags($request->title_de);
$request['title_sa'] = strip_tags($request->title_sa);
$request['title_zh'] = strip_tags($request->title_zh);
$request->validate([
'title' => 'required',
......
......@@ -362,13 +362,13 @@ class PostController extends Controller
$request['content_sa'] = strip_tags($request->content_sa);
$request['content_zh'] = strip_tags($request->content_zh);
$request['title'] = strip_tags($request->title);
$request['title'] = strip_tags($request->title_en);
$request['title'] = strip_tags($request->title_de);
$request['title'] = strip_tags($request->title_sa);
$request['title'] = strip_tags($request->title_zh);
$request['title_en'] = strip_tags($request->title_en);
$request['title_de'] = strip_tags($request->title_de);
$request['title_sa'] = strip_tags($request->title_sa);
$request['title_zh'] = strip_tags($request->title_zh);
$request->validate([
'title' => 'required',
// 'title' => 'required',
'categories' => 'required',
'content' => 'required|min:3',
'post_date' => 'required',
......
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