update deploy

This commit is contained in:
bulut
2026-03-27 10:41:54 +03:00
parent 69d19c0176
commit 6f6448aa06
422 changed files with 37956 additions and 0 deletions

View File

@@ -0,0 +1,51 @@
<?php
namespace App\Http\Requests\Lead;
use App\Enums\LeadSource;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class StoreLeadRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, array<int, mixed>>
*/
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<string, string>
*/
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.',
];
}
}

View File

@@ -0,0 +1,37 @@
<?php
namespace App\Http\Requests\Lead;
use App\Enums\LeadStatus;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class UpdateLeadRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
/**
* @return array<string, array<int, mixed>>
*/
public function rules(): array
{
return [
'status' => ['sometimes', 'string', Rule::enum(LeadStatus::class)],
'is_read' => ['sometimes', 'boolean'],
'admin_note' => ['nullable', 'string'],
];
}
/**
* @return array<string, string>
*/
public function messages(): array
{
return [
'status.in' => 'Geçersiz durum değeri.',
];
}
}