This commit is contained in:
F4ilji
2026-04-07 17:54:26 +05:00
parent 04adba6682
commit 936b1fb5b0
468 changed files with 43498 additions and 4176 deletions
@@ -0,0 +1,42 @@
<?php
namespace App\Containers\Dashboard\UI\WEB\Requests;
use Illuminate\Foundation\Http\FormRequest;
class UpdateUserDetailRequest extends FormRequest
{
public function authorize(): bool
{
return true;
}
public function rules(): array
{
return [
'is_only_worker' => ['nullable', 'boolean'],
'photo' => ['nullable', 'file', 'image', 'max:10240'], // 10MB max
'contactEmail' => ['nullable', 'email', 'max:255'],
'contactPhone' => ['nullable', 'string', 'max:255'],
'academicTitle' => ['nullable', 'string', 'max:255'],
'AcademicDegree' => ['nullable', 'string', 'max:255'],
'workExperience' => ['nullable'],
'education' => ['nullable'],
'professionalRetraining' => ['nullable'],
'professionalDevelopment' => ['nullable'],
'awards' => ['nullable'],
'professDisciplines' => ['nullable'],
'attendedConferences' => ['nullable'],
'publications' => ['nullable'],
'participationScienceProjects' => ['nullable'],
'other' => ['nullable'],
];
}
public function messages(): array
{
return [
'contactEmail.email' => 'Некорректный формат email',
];
}
}