home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

validation.php (10708B)


      1 <?php
      2 
      3 return [
      4 
      5     /*
      6     |--------------------------------------------------------------------------
      7     | Validation Language Lines
      8     |--------------------------------------------------------------------------
      9     |
     10     | The following language lines contain the default error messages used by
     11     | the validator class. Some of these rules have multiple versions such
     12     | as the size rules. Feel free to tweak each of these messages here.
     13     |
     14     */
     15 
     16     'accepted' => 'The :attribute field must be accepted.',
     17     'accepted_if' => 'The :attribute field must be accepted when :other is :value.',
     18     'active_url' => 'The :attribute field must be a valid URL.',
     19     'after' => 'The :attribute field must be a date after :date.',
     20     'after_or_equal' => 'The :attribute field must be a date after or equal to :date.',
     21     'alpha' => 'The :attribute field must only contain letters.',
     22     'alpha_dash' => 'The :attribute field must only contain letters, numbers, dashes, and underscores.',
     23     'alpha_num' => 'The :attribute field must only contain letters and numbers.',
     24     'array' => 'The :attribute field must be an array.',
     25     'ascii' => 'The :attribute field must only contain single-byte alphanumeric characters and symbols.',
     26     'before' => 'The :attribute field must be a date before :date.',
     27     'before_or_equal' => 'The :attribute field must be a date before or equal to :date.',
     28     'between' => [
     29         'array' => 'The :attribute field must have between :min and :max items.',
     30         'file' => 'The :attribute field must be between :min and :max kilobytes.',
     31         'numeric' => 'The :attribute field must be between :min and :max.',
     32         'string' => 'The :attribute field must be between :min and :max characters.',
     33     ],
     34     'boolean' => 'The :attribute field must be true or false.',
     35     'can' => 'The :attribute field contains an unauthorized value.',
     36     'confirmed' => 'The :attribute field confirmation does not match.',
     37     'current_password' => 'The password is incorrect.',
     38     'date' => 'The :attribute field must be a valid date.',
     39     'date_equals' => 'The :attribute field must be a date equal to :date.',
     40     'date_format' => 'The :attribute field must match the format :format.',
     41     'decimal' => 'The :attribute field must have :decimal decimal places.',
     42     'declined' => 'The :attribute field must be declined.',
     43     'declined_if' => 'The :attribute field must be declined when :other is :value.',
     44     'different' => 'The :attribute field and :other must be different.',
     45     'digits' => 'The :attribute field must be :digits digits.',
     46     'digits_between' => 'The :attribute field must be between :min and :max digits.',
     47     'dimensions' => 'The :attribute field has invalid image dimensions.',
     48     'distinct' => 'The :attribute field has a duplicate value.',
     49     'doesnt_end_with' => 'The :attribute field must not end with one of the following: :values.',
     50     'doesnt_start_with' => 'The :attribute field must not start with one of the following: :values.',
     51     'email' => 'The :attribute field must be a valid email address.',
     52     'ends_with' => 'The :attribute field must end with one of the following: :values.',
     53     'enum' => 'The selected :attribute is invalid.',
     54     'exists' => 'The selected :attribute is invalid.',
     55     'file' => 'The :attribute field must be a file.',
     56     'filled' => 'The :attribute field must have a value.',
     57     'gt' => [
     58         'array' => 'The :attribute field must have more than :value items.',
     59         'file' => 'The :attribute field must be greater than :value kilobytes.',
     60         'numeric' => 'The :attribute field must be greater than :value.',
     61         'string' => 'The :attribute field must be greater than :value characters.',
     62     ],
     63     'gte' => [
     64         'array' => 'The :attribute field must have :value items or more.',
     65         'file' => 'The :attribute field must be greater than or equal to :value kilobytes.',
     66         'numeric' => 'The :attribute field must be greater than or equal to :value.',
     67         'string' => 'The :attribute field must be greater than or equal to :value characters.',
     68     ],
     69     'image' => 'The :attribute field must be an image.',
     70     'in' => 'The selected :attribute is invalid.',
     71     'in_array' => 'The :attribute field must exist in :other.',
     72     'integer' => 'The :attribute field must be an integer.',
     73     'ip' => 'The :attribute field must be a valid IP address.',
     74     'ipv4' => 'The :attribute field must be a valid IPv4 address.',
     75     'ipv6' => 'The :attribute field must be a valid IPv6 address.',
     76     'json' => 'The :attribute field must be a valid JSON string.',
     77     'lowercase' => 'The :attribute field must be lowercase.',
     78     'lt' => [
     79         'array' => 'The :attribute field must have less than :value items.',
     80         'file' => 'The :attribute field must be less than :value kilobytes.',
     81         'numeric' => 'The :attribute field must be less than :value.',
     82         'string' => 'The :attribute field must be less than :value characters.',
     83     ],
     84     'lte' => [
     85         'array' => 'The :attribute field must not have more than :value items.',
     86         'file' => 'The :attribute field must be less than or equal to :value kilobytes.',
     87         'numeric' => 'The :attribute field must be less than or equal to :value.',
     88         'string' => 'The :attribute field must be less than or equal to :value characters.',
     89     ],
     90     'mac_address' => 'The :attribute field must be a valid MAC address.',
     91     'max' => [
     92         'array' => 'The :attribute field must not have more than :max items.',
     93         'file' => 'The :attribute field must not be greater than :max kilobytes.',
     94         'numeric' => 'The :attribute field must not be greater than :max.',
     95         'string' => 'The :attribute field must not be greater than :max characters.',
     96     ],
     97     'max_digits' => 'The :attribute field must not have more than :max digits.',
     98     'mimes' => 'The :attribute field must be a file of type: :values.',
     99     'mimetypes' => 'The :attribute field must be a file of type: :values.',
    100     'min' => [
    101         'array' => 'The :attribute field must have at least :min items.',
    102         'file' => 'The :attribute field must be at least :min kilobytes.',
    103         'numeric' => 'The :attribute field must be at least :min.',
    104         'string' => 'The :attribute field must be at least :min characters.',
    105     ],
    106     'min_digits' => 'The :attribute field must have at least :min digits.',
    107     'missing' => 'The :attribute field must be missing.',
    108     'missing_if' => 'The :attribute field must be missing when :other is :value.',
    109     'missing_unless' => 'The :attribute field must be missing unless :other is :value.',
    110     'missing_with' => 'The :attribute field must be missing when :values is present.',
    111     'missing_with_all' => 'The :attribute field must be missing when :values are present.',
    112     'multiple_of' => 'The :attribute field must be a multiple of :value.',
    113     'not_in' => 'The selected :attribute is invalid.',
    114     'not_regex' => 'The :attribute field format is invalid.',
    115     'numeric' => 'The :attribute field must be a number.',
    116     'password' => [
    117         'letters' => 'The :attribute field must contain at least one letter.',
    118         'mixed' => 'The :attribute field must contain at least one uppercase and one lowercase letter.',
    119         'numbers' => 'The :attribute field must contain at least one number.',
    120         'symbols' => 'The :attribute field must contain at least one symbol.',
    121         'uncompromised' => 'The given :attribute has appeared in a data leak. Please choose a different :attribute.',
    122     ],
    123     'present' => 'The :attribute field must be present.',
    124     'prohibited' => 'The :attribute field is prohibited.',
    125     'prohibited_if' => 'The :attribute field is prohibited when :other is :value.',
    126     'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.',
    127     'prohibits' => 'The :attribute field prohibits :other from being present.',
    128     'regex' => 'The :attribute field format is invalid.',
    129     'required' => 'The :attribute field is required.',
    130     'required_array_keys' => 'The :attribute field must contain entries for: :values.',
    131     'required_if' => 'The :attribute field is required when :other is :value.',
    132     'required_if_accepted' => 'The :attribute field is required when :other is accepted.',
    133     'required_unless' => 'The :attribute field is required unless :other is in :values.',
    134     'required_with' => 'The :attribute field is required when :values is present.',
    135     'required_with_all' => 'The :attribute field is required when :values are present.',
    136     'required_without' => 'The :attribute field is required when :values is not present.',
    137     'required_without_all' => 'The :attribute field is required when none of :values are present.',
    138     'same' => 'The :attribute field must match :other.',
    139     'size' => [
    140         'array' => 'The :attribute field must contain :size items.',
    141         'file' => 'The :attribute field must be :size kilobytes.',
    142         'numeric' => 'The :attribute field must be :size.',
    143         'string' => 'The :attribute field must be :size characters.',
    144     ],
    145     'starts_with' => 'The :attribute field must start with one of the following: :values.',
    146     'string' => 'The :attribute field must be a string.',
    147     'timezone' => 'The :attribute field must be a valid timezone.',
    148     'unique' => 'The :attribute has already been taken.',
    149     'uploaded' => 'The :attribute failed to upload.',
    150     'uppercase' => 'The :attribute field must be uppercase.',
    151     'url' => 'The :attribute field must be a valid URL.',
    152     'ulid' => 'The :attribute field must be a valid ULID.',
    153     'uuid' => 'The :attribute field must be a valid UUID.',
    154 
    155     /*
    156     |--------------------------------------------------------------------------
    157     | Custom Validation Language Lines
    158     |--------------------------------------------------------------------------
    159     |
    160     | Here you may specify custom validation messages for attributes using the
    161     | convention "attribute.rule" to name the lines. This makes it quick to
    162     | specify a specific custom language line for a given attribute rule.
    163     |
    164     */
    165 
    166     'custom' => [
    167         'attribute-name' => [
    168             'rule-name' => 'custom-message',
    169         ],
    170     ],
    171 
    172     /*
    173     |--------------------------------------------------------------------------
    174     | Custom Validation Attributes
    175     |--------------------------------------------------------------------------
    176     |
    177     | The following language lines are used to swap our attribute placeholder
    178     | with something more reader friendly such as "E-Mail Address" instead
    179     | of "email". This simply helps us make our message more expressive.
    180     |
    181     */
    182 
    183     'attributes' => [],
    184 
    185 ];