Commit e974f35d authored by Julien Tant's avatar Julien Tant

slug is required in page module

parent c6a7d905
...@@ -19,6 +19,7 @@ class CreatePageRequest extends BaseFormRequest ...@@ -19,6 +19,7 @@ class CreatePageRequest extends BaseFormRequest
{ {
return [ return [
'title' => 'required', 'title' => 'required',
'slug' => 'required',
'body' => 'required', 'body' => 'required',
]; ];
} }
...@@ -40,6 +41,7 @@ class CreatePageRequest extends BaseFormRequest ...@@ -40,6 +41,7 @@ class CreatePageRequest extends BaseFormRequest
{ {
return [ return [
'title.required' => trans('page::messages.title is required'), 'title.required' => trans('page::messages.title is required'),
'slug.required' => trans('page::messages.slug is required'),
'body.required' => trans('page::messages.body is required'), 'body.required' => trans('page::messages.body is required'),
]; ];
} }
......
...@@ -19,6 +19,7 @@ class UpdatePageRequest extends BaseFormRequest ...@@ -19,6 +19,7 @@ class UpdatePageRequest extends BaseFormRequest
{ {
return [ return [
'title' => 'required', 'title' => 'required',
'slug' => 'required',
'body' => 'required', 'body' => 'required',
]; ];
} }
...@@ -40,6 +41,7 @@ class UpdatePageRequest extends BaseFormRequest ...@@ -40,6 +41,7 @@ class UpdatePageRequest extends BaseFormRequest
{ {
return [ return [
'title.required' => trans('page::messages.title is required'), 'title.required' => trans('page::messages.title is required'),
'slug.required' => trans('page::messages.slug is required'),
'body.required' => trans('page::messages.body is required'), 'body.required' => trans('page::messages.body is required'),
]; ];
} }
......
...@@ -8,6 +8,7 @@ return [ ...@@ -8,6 +8,7 @@ return [
'template is required' => 'Der Vorlagename ist erforderlich.', 'template is required' => 'Der Vorlagename ist erforderlich.',
'title is required' => 'Der Titel ist erforderlich.', 'title is required' => 'Der Titel ist erforderlich.',
'slug is required' => 'Der Slug ist erforderlich.',
'body is required' => 'Der Inhalt ist erforderlich.', 'body is required' => 'Der Inhalt ist erforderlich.',
'only one homepage allowed' => 'Es kann nur eine Startseite definiert werden', 'only one homepage allowed' => 'Es kann nur eine Startseite definiert werden',
]; ];
...@@ -8,6 +8,7 @@ return [ ...@@ -8,6 +8,7 @@ return [
'template is required' => 'The template name is required.', 'template is required' => 'The template name is required.',
'title is required' => 'The title is required.', 'title is required' => 'The title is required.',
'slug is required' => 'The slug is required.',
'body is required' => 'The body is required.', 'body is required' => 'The body is required.',
'only one homepage allowed' => 'Only one homepage is allowed', 'only one homepage allowed' => 'Only one homepage is allowed',
]; ];
...@@ -8,6 +8,7 @@ return [ ...@@ -8,6 +8,7 @@ return [
'template is required' => 'Le nom de modèle de page est requis.', 'template is required' => 'Le nom de modèle de page est requis.',
'title is required' => 'Le titre est requis.', 'title is required' => 'Le titre est requis.',
'slug is required' => 'Le slug est requis.',
'body is required' => 'Le contenu est requis.', 'body is required' => 'Le contenu est requis.',
'only one homepage allowed' => 'Une seule page d\'accueil est permise.', 'only one homepage allowed' => 'Une seule page d\'accueil est permise.',
]; ];
...@@ -8,6 +8,7 @@ return [ ...@@ -8,6 +8,7 @@ return [
'template is required' => 'De template naam is vereist.', 'template is required' => 'De template naam is vereist.',
'title is required' => 'De titel is vereist.', 'title is required' => 'De titel is vereist.',
'slug is required' => 'De slug is vereist.',
'body is required' => 'De inhoud is vereist.', 'body is required' => 'De inhoud is vereist.',
'only one homepage allowed' => 'Er kan maar één startpagina zijn', 'only one homepage allowed' => 'Er kan maar één startpagina zijn',
]; ];
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