fix the relation
This commit is contained in:
@@ -169,7 +169,11 @@ class RoadItemsProject extends Model
|
|||||||
|
|
||||||
public function cmmsMachines(): BelongsToMany
|
public function cmmsMachines(): BelongsToMany
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(CMMSMachine::class, 'cmms_machine_road_items_project');
|
return $this->belongsToMany(CMMSMachine::class,
|
||||||
|
'cmms_machine_road_items_project',
|
||||||
|
'machine_id',
|
||||||
|
'road_items_project_id'
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function rahdaran(): BelongsToMany
|
public function rahdaran(): BelongsToMany
|
||||||
|
|||||||
Reference in New Issue
Block a user