From 60874c046fec13d9299832961a76a7d67d1960f2 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Thu, 3 Sep 2020 00:34:35 +0100 Subject: [PATCH] Conditionally pre-load Appointment relationship --- app/Http/Controllers/AppointmentController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Http/Controllers/AppointmentController.php b/app/Http/Controllers/AppointmentController.php index da98122..8ed2722 100644 --- a/app/Http/Controllers/AppointmentController.php +++ b/app/Http/Controllers/AppointmentController.php @@ -76,6 +76,8 @@ class AppointmentController extends Controller { if (!is_null($application)) { + $application->load('appointment'); + $application->appointment->meetingNotes = $request->noteText; $application->appointment->save();