From 7510fc3d77baad5a81c416324147c567800c6261 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 23 Jun 2025 17:45:41 +0530 Subject: [PATCH] Added guard_name model file --- app/Models/GuardName.php | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/Models/GuardName.php diff --git a/app/Models/GuardName.php b/app/Models/GuardName.php new file mode 100644 index 000000000..20723e52f --- /dev/null +++ b/app/Models/GuardName.php @@ -0,0 +1,30 @@ +belongsTo(Plant::class); + } + + public function guardPatrolEntries() + { + return $this->hasMany(GuardPatrolEntry::class, 'guard_name_id', 'id'); + } +}