diff --git a/app/Models/GuardPatrolEntry.php b/app/Models/GuardPatrolEntry.php new file mode 100644 index 0000000..6d47357 --- /dev/null +++ b/app/Models/GuardPatrolEntry.php @@ -0,0 +1,39 @@ +belongsTo(Plant::class); + } + + public function guardNames(): BelongsTo + { + //return $this->belongsTo(CheckPointName::class); + return $this->belongsTo(GuardName::class, 'guard_name_id'); + } + + public function checkPointNames(): BelongsTo + { + //return $this->belongsTo(CheckPointName::class); + return $this->belongsTo(CheckPointName::class, 'check_point_name_id'); + } +}