Conditionally pre-load Appointment relationship

This commit is contained in:
Miguel Nogueira 2020-09-03 00:34:35 +01:00
parent e9dd1567b8
commit 60874c046f

View File

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