Files
ntspi-app/app/Http/Requests/UserDetail/UpdateRequest.php
T
2024-09-19 16:06:49 +05:00

45 lines
1.4 KiB
PHP

<?php
namespace App\Http\Requests\UserDetail;
use Illuminate\Foundation\Http\FormRequest;
class UpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*/
public function authorize(): bool
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array<string, \Illuminate\Contracts\Validation\ValidationRule|array<mixed>|string>
*/
public function rules(): array
{
return [
'name' => 'required|string',
'surname' => 'required|string',
'middleName' => 'nullable|string',
'academicTitle' => 'nullable|string',
'educatorPosition' => 'nullable|string',
'education' => 'nullable|string',
'awards' => 'nullable|string',
'professDisciplines' => 'nullable|string',
'professionalRetraining' => 'nullable|string',
'professionalDevelopment' => 'nullable|string',
'workExperience' => 'nullable|integer',
'attendedConferences' => 'nullable|string',
'participationScience_projects' => 'nullable|string',
'publications' => 'nullable|string',
'trainingAids' => 'nullable|string',
'contactEmail' => 'nullable|email',
'contactPhone' => 'nullable|string',
];
}
}