Initial commit - Physiotherapy Clinic Management System
This commit is contained in:
commit
dbb326f2cc
300 files changed
+144285
No files matched your search
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Requests;
|
||||
|
||||
use Illuminate\Foundation\Http\FormRequest;
|
||||
|
||||
class StoreAppointmentRequest extends FormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'patient_id' => ['required', 'exists:patients,id'],
|
||||
'therapist_id' => ['required', 'exists:users,id'],
|
||||
'appointment_date' => ['required', 'date'],
|
||||
'duration_minutes' => ['required', 'integer', 'min:15'],
|
||||
'type' => ['nullable', 'in:session,assessment,follow-up'],
|
||||
'room' => ['nullable', 'string', 'max:50'],
|
||||
'notes' => ['nullable', 'string'],
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user