Add Additional Information

This commit is contained in:
R
2023-02-15 09:57:00 +07:00
parent 7f77deb09e
commit d8f493103c
6 changed files with 65 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ class AppointmentController extends Controller
public function index()
{
$appointments = Appointment::query()
->with('doctor.user', 'doctor.speciality', 'appointmentDetail', 'healthCare')
->with('doctor.user', 'doctor.speciality', 'appointmentDetail', 'healthCare', 'user')
->latest()
->paginate(15);
return response()->json(Helper::paginateResources(AppointmentResource::collection($appointments)));