Files
hpt_inventory/app/Http/Requests/PatientUpdateRequest.php
2026-06-10 16:42:20 +07:00

44 lines
1.0 KiB
PHP

<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class PatientUpdateRequest extends FormRequest
{
/**
* Determine if the user is authorized to make this request.
*
* @return bool
*/
public function authorize()
{
return true;
}
/**
* Get the validation rules that apply to the request.
*
* @return array
*/
public function rules()
{
return [
'uid' => 'required|integer|min:1',
'name_en' => 'required|string',
'patient_uuid' => 'nullable|string',
'dob' => 'required',
'gender' => 'required|integer',
'phone_number' => 'nullable',
'khid_number' => 'nullable',
'house_number' => 'nullable',
'street_number' => 'nullable',
'province_id' => 'nullable',
'district_id' => 'nullable',
'commune_id' => 'nullable',
'village_id' => 'nullable'
];
}
}