Add relationships for equipment masters in Machine and Plant models

This commit is contained in:
dhanabalan
2025-09-21 15:46:01 +05:30
parent 2e7c37c6f1
commit fad3cf4ed6
3 changed files with 12 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ class EquipmentMaster extends Model
{
return $this->belongsTo(Plant::class);
}
public function machine(): BelongsTo
{
return $this->belongsTo(Machine::class);