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'); + } }