Files
alrahma_sunday_school_api/app/Http/Requests/Parents/ParentStudentUpdateRequest.php
T
2026-03-10 00:48:32 -04:00

23 lines
678 B
PHP

<?php
namespace App\Http\Requests\Parents;
use App\Http\Requests\ApiFormRequest;
class ParentStudentUpdateRequest extends ApiFormRequest
{
public function rules(): array
{
return [
'firstname' => ['required', 'string', 'max:255'],
'lastname' => ['required', 'string', 'max:255'],
'dob' => ['required', 'date'],
'gender' => ['required', 'string', 'max:10'],
'photo_consent' => ['nullable', 'boolean'],
'registration_grade' => ['nullable', 'string', 'max:50'],
'allergies' => ['nullable', 'array'],
'medical_conditions' => ['nullable', 'array'],
];
}
}