Create validation.php

This commit is contained in:
begini 2019-02-03 08:41:14 +07:00 committed by GitHub
parent 8353d7e385
commit 4a0e1df564
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,114 @@
<?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' => ':attribute harus diterima.',
'active_url' => ':attribute bukan berupa URL yang benar.',
'after' => ':attribute harus berupa tanggal setelah :date.',
'after_or_equal' => ':attribute harus berupa tanggal yang sama atau setelah :date.',
'alpha' => ':attribute hanya boleh berisi huruf.',
'alpha_dash' => ':attribute hanya boleh berisi huruf, angka dan tanda minus.',
'alpha_num' => ':attribute hanya boleh berisi huruf dan angka.',
'array' => ':attribute harus berupa array.',
'before' => ':attribute harus berupa tanggal sebelum :date.',
'before_or_equal' => ':attribute harus berupa tanggal yang sama atau sebelum :date.',
'between' => [
'numeric' => ':attribute harus antara :min dan :max.',
'file' => ':attribute harus antara :min dan :max KB.',
'string' => ':attribute harus antara :min dan :max karakter.',
'array' => ':attribute harus antara :min dan :max item.',
],
'boolean' => ':attribute harus berupa true atau false.',
'confirmed' => 'Konfirmasi :attribute tidak sama.',
'date' => ':attribute bukan berupa tanggal yang benar.',
'date_format' => ':attribute tidak sesuai dengan format :format.',
'different' => ':attribute dan :other harus berbeda.',
'digits' => ':attribute haurs berisi :digits digit.',
'digits_between' => ':attribute harus antara :min dan :max digit.',
'dimensions' => ':attribute berisi dimensi gambar yang tidak benar.',
'distinct' => 'Bagian :attribute memiliki duplikasi.',
'email' => ':attribute harus berupa alamat email yang benar.',
'exists' => ':attribute yang dipilih tidak benar.',
'file' => ':attribute harus berupa berkas.',
'filled' => 'Bagian :attribute harus diisi.',
'image' => ':attribute harus berupa gambar.',
'in' => ':attribute yang dipilih tidak benar.',
'in_array' => 'Bagian :attribute tidak ada dalam :other.',
'integer' => ':attribute harus berupa angka bulat.',
'ip' => ':attribute harus berupa alamat IP yang benar.',
'ipv4' => ':attribute harus berupa alamat IPv4 yang benar.',
'ipv6' => ':attribute harus berupa alamat IPv6 yang benar.',
'json' => ':attribute harus berupa string JSON yang benar.',
'max' => [
'numeric' => 'The :attribute may not be greater than :max.',
'file' => 'The :attribute may not be greater than :max kilobytes.',
'string' => 'The :attribute may not be greater than :max characters.',
'array' => 'The :attribute may not have more than :max items.',
],
'mimes' => 'The :attribute must be a file of type: :values.',
'mimetypes' => 'The :attribute must be a file of type: :values.',
'min' => [
'numeric' => 'The :attribute must be at least :min.',
'file' => 'The :attribute must be at least :min kilobytes.',
'string' => 'The :attribute must be at least :min characters.',
'array' => 'The :attribute must have at least :min items.',
],
'not_in' => 'The selected :attribute is invalid.',
'not_regex' => 'The :attribute format is invalid.',
'numeric' => 'The :attribute must be a number.',
'present' => 'The :attribute field must be present.',
'regex' => 'The :attribute format is invalid.',
'required' => 'The :attribute field is required.',
'required_if' => 'The :attribute field is required when :other is :value.',
'required_unless' => 'The :attribute field is required unless :other is in :values.',
'required_with' => 'The :attribute field is required when :values is present.',
'required_with_all' => 'The :attribute field is required when :values is present.',
'required_without' => 'The :attribute field is required when :values is not present.',
'required_without_all' => 'The :attribute field is required when none of :values are present.',
'same' => 'The :attribute and :other must match.',
'size' => [
'numeric' => 'The :attribute must be :size.',
'file' => 'The :attribute must be :size kilobytes.',
'string' => 'The :attribute must be :size characters.',
'array' => 'The :attribute must contain :size items.',
],
'string' => 'The :attribute must be a string.',
'timezone' => 'The :attribute must be a valid zone.',
'unique' => 'The :attribute has already been taken.',
'uploaded' => 'The :attribute failed to upload.',
'url' => 'The :attribute format is invalid.',
/*
|--------------------------------------------------------------------------
| 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' => [],
];