From 1ea961a3b882fd0bec322741cbdb4f03b4202758 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 23 Jun 2025 18:39:22 +0530 Subject: [PATCH] Added guard_patrol_entry model file --- app/Models/GuardPatrolEntry.php | 39 +++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 app/Models/GuardPatrolEntry.php 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'); + } +}