convert many to many to one to many

This commit is contained in:
2025-11-15 10:34:56 +03:30
parent e463096adb
commit eaccd76019
10 changed files with 104 additions and 33 deletions

View File

@@ -84,4 +84,9 @@ class Mission extends Model
'missionable_id'
);
}
public function machine(): HasOne
{
return $this->hasOne(CMMSMachine::class);
}
}