Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
onestartup-crm
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Angel Martin
onestartup-crm
Commits
5181b18f
Commit
5181b18f
authored
6 years ago
by
Pancholin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Archivo de validaciones
parent
f45edb74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
117 additions
and
0 deletions
+117
-0
CrmListServiceProvider.php
src/CrmListServiceProvider.php
+4
-0
validation.php
src/lang/es/validation.php
+113
-0
No files found.
src/CrmListServiceProvider.php
View file @
5181b18f
...
...
@@ -17,6 +17,10 @@ class CrmListServiceProvider extends ServiceProvider
$this
->
loadMigrationsFrom
(
__DIR__
.
'/migrations'
);
$this
->
loadViewsFrom
(
__DIR__
.
'/views'
,
'crm'
);
$this
->
loadViewsFrom
(
__DIR__
.
'/views/admin'
,
'crm-admin'
);
$this
->
publishes
([
__DIR__
.
'/lang/es'
=>
resource_path
(
'lang/es/'
),
],
"lang"
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
src/lang/es/validation.php
0 → 100644
View file @
5181b18f
<?php
return
[
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted'
=>
'El campo :attribute debe ser aceptado.'
,
'active_url'
=>
'El campo :attribute no es una URL válida.'
,
'after'
=>
'El campo :attribute debe ser una fecha después de :date.'
,
'alpha'
=>
'El campo :attribute sólo puede contener letras.'
,
'alpha_dash'
=>
'El campo :attribute sólo puede contener letras, números y guiones.'
,
'alpha_num'
=>
'El campo :attribute sólo puede contener letras y números.'
,
'array'
=>
'El campo :attribute debe ser un arreglo.'
,
'before'
=>
'El campo :attribute debe ser una fecha antes :date.'
,
'between'
=>
[
'numeric'
=>
'El campo :attribute debe estar entre :min - :max.'
,
'file'
=>
'El campo :attribute debe estar entre :min - :max kilobytes.'
,
'string'
=>
'El campo :attribute debe estar entre :min - :max caracteres.'
,
'array'
=>
'El campo :attribute debe tener entre :min y :max elementos.'
,
],
'boolean'
=>
'El campo :attribute debe ser verdadero o falso.'
,
'confirmed'
=>
'El campo de confirmación de :attribute no coincide.'
,
'date'
=>
'El campo :attribute no es una fecha válida.'
,
'date_format'
=>
'El campo :attribute no corresponde con el formato :format.'
,
'different'
=>
'Los campos :attribute y :other deben ser diferentes.'
,
'digits'
=>
'El campo :attribute debe ser de :digits dígitos.'
,
'digits_between'
=>
'El campo :attribute debe tener entre :min y :max dígitos.'
,
'dimensions'
=>
'El campo :attribute no tiene una dimensión válida.'
,
'distinct'
=>
'El campo :attribute tiene un valor duplicado.'
,
'email'
=>
'El formato del :attribute es inválido.'
,
'exists'
=>
'El campo :attribute seleccionado es inválido.'
,
'file'
=>
'El campo :attribute debe ser un archivo.'
,
'filled'
=>
'El campo :attribute es requerido.'
,
'image'
=>
'El campo :attribute debe ser una imagen.'
,
'in'
=>
'El campo :attribute seleccionado es inválido.'
,
'in_array'
=>
'El campo :attribute no existe en :other.'
,
'integer'
=>
'El campo :attribute debe ser un entero.'
,
'ip'
=>
'El campo :attribute debe ser una dirección IP válida.'
,
'json'
=>
'El campo :attribute debe ser una cadena JSON válida.'
,
'max'
=>
[
'numeric'
=>
'El campo :attribute debe ser menor que :max.'
,
'file'
=>
'El campo :attribute debe ser menor que :max kilobytes.'
,
'string'
=>
'El campo :attribute debe ser menor que :max caracteres.'
,
'array'
=>
'El campo :attribute puede tener hasta :max elementos.'
,
],
'mimes'
=>
'El campo :attribute debe ser un archivo de tipo: :values.'
,
'mimetypes'
=>
'El campo :attribute debe ser un archivo de tipo: :values.'
,
'min'
=>
[
'numeric'
=>
'El campo :attribute debe tener al menos :min.'
,
'file'
=>
'El campo :attribute debe tener al menos :min kilobytes.'
,
'string'
=>
'El campo :attribute debe tener al menos :min caracteres.'
,
'array'
=>
'El campo :attribute debe tener al menos :min elementos.'
,
],
'not_in'
=>
'El campo :attribute seleccionado es invalido.'
,
'numeric'
=>
'El campo :attribute debe ser un número.'
,
'present'
=>
'El campo :attribute debe estar presente.'
,
'regex'
=>
'El formato del campo :attribute es inválido.'
,
'required'
=>
'El campo :attribute es requerido.'
,
'required_if'
=>
'El campo :attribute es requerido cuando el campo :other es :value.'
,
'required_unless'
=>
'El campo :attribute es requerido a menos que :other esté presente en :values.'
,
'required_with'
=>
'El campo :attribute es requerido cuando :values está presente.'
,
'required_with_all'
=>
'El campo :attribute es requerido cuando :values está presente.'
,
'required_without'
=>
'El campo :attribute es requerido cuando :values no está presente.'
,
'required_without_all'
=>
'El campo :attribute es requerido cuando ningún :values está presente.'
,
'same'
=>
'El campo :attribute y :other debe coincidir.'
,
'size'
=>
[
'numeric'
=>
'El campo :attribute debe ser :size.'
,
'file'
=>
'El campo :attribute debe tener :size kilobytes.'
,
'string'
=>
'El campo :attribute debe tener :size caracteres.'
,
'array'
=>
'El campo :attribute debe contener :size elementos.'
,
],
'string'
=>
'El campo :attribute debe ser una cadena.'
,
'timezone'
=>
'El campo :attribute debe ser una zona válida.'
,
'unique'
=>
'El campo :attribute ya ha sido tomado.'
,
'url'
=>
'El formato de :attribute es inválido.'
,
'uploaded'
=>
'El campo :attribute no ha podido ser cargado.'
,
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom'
=>
[
'attribute-name'
=>
[
'rule-name'
=>
'custom-message'
,
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes'
=>
[
'username'
=>
'usuario'
,
'password'
=>
'contraseña'
],
];
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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