From 7d84624843ec51b82e424200fa412f194079c5d9 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 20 May 2026 12:05:34 +0530 Subject: [PATCH] Added vehicle entries in plant model --- app/Models/Plant.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/Plant.php b/app/Models/Plant.php index e216092..e263c70 100644 --- a/app/Models/Plant.php +++ b/app/Models/Plant.php @@ -163,4 +163,9 @@ class Plant extends Model { return $this->hasMany(User::class, 'plant_id', 'id'); } + + public function vehicleEntries() + { + return $this->hasMany(VehicleEntry::class, 'plant_id', 'id'); + } }