> */ public function rules(): array { return [ 'name' => ['required', 'string', 'max:255'], 'phone' => ['required', 'string', 'max:20'], 'email' => ['nullable', 'email', 'max:255'], 'source' => ['required', 'string', Rule::enum(LeadSource::class)], 'target_course' => ['nullable', 'string', 'max:255'], 'education_level' => ['nullable', 'string', 'max:255'], 'subject' => ['nullable', 'string', 'max:255'], 'message' => ['nullable', 'string'], 'kvkk_consent' => ['required', 'accepted'], 'marketing_consent' => ['sometimes', 'boolean'], 'utm_source' => ['nullable', 'string', 'max:255'], 'utm_medium' => ['nullable', 'string', 'max:255'], 'utm_campaign' => ['nullable', 'string', 'max:255'], ]; } /** * @return array */ public function messages(): array { return [ 'name.required' => 'Ad Soyad zorunludur.', 'phone.required' => 'Telefon numarası zorunludur.', 'source.required' => 'Kaynak bilgisi zorunludur.', 'kvkk_consent.required' => 'KVKK onayı zorunludur.', 'kvkk_consent.accepted' => 'KVKK metnini onaylamanız gerekmektedir.', ]; } }