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