Skip to content

Commit

Permalink
birth_date digits validation added.
Browse files Browse the repository at this point in the history
  • Loading branch information
karabayyazilim committed Jun 22, 2024
1 parent e573d18 commit 9b7b820
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function rules(): array
'full_name' => ['required', 'string'],
'email' => ['required', 'email'],
'phone' => ['required', 'string'],
'birth_date' => ['required', 'numeric'],
'birth_date' => ['required', 'numeric', 'digits:4'],
'job' => ['required', 'string'],
'transportation' => ['string'],
'tent' => ['numeric', 'nullable'],
Expand Down Expand Up @@ -58,6 +58,7 @@ public function messages(): array
'email.required' => 'E-posta alanı gereklidir',
'phone.required' => 'Telefon alanı gereklidir',
'birth_date.required' => 'Doğum tarihi alanı gereklidir',
'birth_date.digits' => 'Doğum tarihi alanı 4 haneli olmalıdır',
'job.required' => 'İş alanı gereklidir',
'transportation.string' => 'Ulaşım alanı olmalıdır',
'tent.numeric' => 'Çadır alanı bir sayı olmalıdır',
Expand Down

0 comments on commit 9b7b820

Please sign in to comment.