first commit
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
<?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',
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user