Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
e974f35d
Commit
e974f35d
authored
Sep 10, 2017
by
Julien Tant
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
slug is required in page module
parent
c6a7d905
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
0 deletions
+8
-0
CreatePageRequest.php
Modules/Page/Http/Requests/CreatePageRequest.php
+2
-0
UpdatePageRequest.php
Modules/Page/Http/Requests/UpdatePageRequest.php
+2
-0
messages.php
Modules/Translation/Resources/lang/page/de/messages.php
+1
-0
messages.php
Modules/Translation/Resources/lang/page/en/messages.php
+1
-0
messages.php
Modules/Translation/Resources/lang/page/fr/messages.php
+1
-0
messages.php
Modules/Translation/Resources/lang/page/nl/messages.php
+1
-0
No files found.
Modules/Page/Http/Requests/CreatePageRequest.php
View file @
e974f35d
...
...
@@ -19,6 +19,7 @@ class CreatePageRequest extends BaseFormRequest
{
return
[
'title'
=>
'required'
,
'slug'
=>
'required'
,
'body'
=>
'required'
,
];
}
...
...
@@ -40,6 +41,7 @@ class CreatePageRequest extends BaseFormRequest
{
return
[
'title.required'
=>
trans
(
'page::messages.title is required'
),
'slug.required'
=>
trans
(
'page::messages.slug is required'
),
'body.required'
=>
trans
(
'page::messages.body is required'
),
];
}
...
...
Modules/Page/Http/Requests/UpdatePageRequest.php
View file @
e974f35d
...
...
@@ -19,6 +19,7 @@ class UpdatePageRequest extends BaseFormRequest
{
return
[
'title'
=>
'required'
,
'slug'
=>
'required'
,
'body'
=>
'required'
,
];
}
...
...
@@ -40,6 +41,7 @@ class UpdatePageRequest extends BaseFormRequest
{
return
[
'title.required'
=>
trans
(
'page::messages.title is required'
),
'slug.required'
=>
trans
(
'page::messages.slug is required'
),
'body.required'
=>
trans
(
'page::messages.body is required'
),
];
}
...
...
Modules/Translation/Resources/lang/page/de/messages.php
View file @
e974f35d
...
...
@@ -8,6 +8,7 @@ return [
'template is required'
=>
'Der Vorlagename ist erforderlich.'
,
'title is required'
=>
'Der Titel ist erforderlich.'
,
'slug is required'
=>
'Der Slug ist erforderlich.'
,
'body is required'
=>
'Der Inhalt ist erforderlich.'
,
'only one homepage allowed'
=>
'Es kann nur eine Startseite definiert werden'
,
];
Modules/Translation/Resources/lang/page/en/messages.php
View file @
e974f35d
...
...
@@ -8,6 +8,7 @@ return [
'template is required'
=>
'The template name is required.'
,
'title is required'
=>
'The title is required.'
,
'slug is required'
=>
'The slug is required.'
,
'body is required'
=>
'The body is required.'
,
'only one homepage allowed'
=>
'Only one homepage is allowed'
,
];
Modules/Translation/Resources/lang/page/fr/messages.php
View file @
e974f35d
...
...
@@ -8,6 +8,7 @@ return [
'template is required'
=>
'Le nom de modèle de page est requis.'
,
'title is required'
=>
'Le titre est requis.'
,
'slug is required'
=>
'Le slug est requis.'
,
'body is required'
=>
'Le contenu est requis.'
,
'only one homepage allowed'
=>
'Une seule page d\'accueil est permise.'
,
];
Modules/Translation/Resources/lang/page/nl/messages.php
View file @
e974f35d
...
...
@@ -8,6 +8,7 @@ return [
'template is required'
=>
'De template naam is vereist.'
,
'title is required'
=>
'De titel is vereist.'
,
'slug is required'
=>
'De slug is vereist.'
,
'body is required'
=>
'De inhoud is vereist.'
,
'only one homepage allowed'
=>
'Er kan maar één startpagina zijn'
,
];
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