Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slug is required in page module #374

Merged
merged 1 commit into from
Sep 10, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Modules/Page/Http/Requests/CreatePageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function translationRules()
{
return [
'title' => 'required',
'slug' => 'required',
'body' => 'required',
];
}
Expand All @@ -40,6 +41,7 @@ public function translationMessages()
{
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'),
];
}
Expand Down
2 changes: 2 additions & 0 deletions Modules/Page/Http/Requests/UpdatePageRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function translationRules()
{
return [
'title' => 'required',
'slug' => 'required',
'body' => 'required',
];
}
Expand All @@ -40,6 +41,7 @@ public function translationMessages()
{
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'),
];
}
Expand Down
1 change: 1 addition & 0 deletions Modules/Translation/Resources/lang/page/de/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

'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',
];
1 change: 1 addition & 0 deletions Modules/Translation/Resources/lang/page/en/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

'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',
];
1 change: 1 addition & 0 deletions Modules/Translation/Resources/lang/page/fr/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

'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.',
];
1 change: 1 addition & 0 deletions Modules/Translation/Resources/lang/page/nl/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

'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',
];