belongsTo('App\Application', 'id', 'applicationID'); } public function setStatus($status) { $this->update([ 'appointmentStatus' => $status ]); } }