From 43180d77b286d4c1488d24dfa8e63d6157d917a7 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Tue, 6 May 2025 12:19:47 +0530 Subject: [PATCH] Added hasMany relation --- app/Models/LineStop.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Models/LineStop.php b/app/Models/LineStop.php index 807a6e47a..7c9e7bb4a 100644 --- a/app/Models/LineStop.php +++ b/app/Models/LineStop.php @@ -14,4 +14,9 @@ class LineStop extends Model "code", "reason", ]; + + public function productionLineStops() + { + return $this->hasMany(ProductionLineStop::class, 'linestop_id'); + } }