Conditionally pre-load Appointment relationship

This commit is contained in:
Miguel Nogueira 2020-09-03 00:34:35 +01:00
parent e9dd1567b8
commit 60874c046f
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,8 @@ class AppointmentController extends Controller
{ {
if (!is_null($application)) if (!is_null($application))
{ {
$application->load('appointment');
$application->appointment->meetingNotes = $request->noteText; $application->appointment->meetingNotes = $request->noteText;
$application->appointment->save(); $application->appointment->save();