Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
webprofile-jwg2024
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Siti Aisah
webprofile-jwg2024
Commits
021c6f9a
Commit
021c6f9a
authored
Dec 26, 2022
by
Triyah Fatmawati
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix validasi
parent
643287ed
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
app/Http/Controllers/Webprofile/Backend/PageController.php
+3
-3
app/Http/Controllers/Webprofile/Backend/PostController.php
+5
-5
No files found.
app/Http/Controllers/Webprofile/Backend/PageController.php
View file @
021c6f9a
...
...
@@ -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'
,
...
...
app/Http/Controllers/Webprofile/Backend/PostController.php
View file @
021c6f9a
...
...
@@ -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'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment