diff --git a/app/Models/GuardName.php b/app/Models/GuardName.php new file mode 100644 index 0000000..20723e5 --- /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'); + } +}