Added machine relation in model file
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Has been cancelled
Gemini PR Review / Gemini PR Review (pull_request) Successful in 16s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 13s
Laravel Larastan / larastan (pull_request) Failing after 2m54s
Laravel Pint / pint (pull_request) Failing after 3m3s

This commit is contained in:
dhanabalan
2026-09-20 12:50:18 +05:30
parent c70c37bfcf
commit cd43e338d7

View File

@@ -117,4 +117,9 @@ class Plant extends Model
{
return $this->hasMany(CharacteristicValue::class, 'plant_id', 'id');
}
public function machines()
{
return $this->hasMany(Machine::class, 'plant_id', 'id');
}
}