code = (string) Str::orderedUuid(); // generate uuid } catch (\Exception $e) { abort(500, $e->getMessage()); } }); } public function member() { return $this->belongsTo(Member::class, 'member_id'); } public function diagnosis() { return $this->belongsTo(Icd::class, 'diagnosis_id'); } public function plan() { return $this->belongsTo(Plan::class, 'plan_id'); } public function benefit() { return $this->belongsTo(Benefit::class, 'benefit_id'); } }