refactore the relation

This commit is contained in:
2024-12-22 12:55:55 +00:00
parent 945ac4269b
commit 7c63cc1e14
2 changed files with 4 additions and 4 deletions

View File

@@ -173,7 +173,7 @@ class RoadItemsProject extends Model
public function cmmsMachine(): HasOne
{
return $this->hasOne(CMMSMachine::class);
return $this->hasOne(CMMSMachine::class, 'id', 'cmms_machine_id');
}
public function rahdaran(): BelongsToMany