added primary keys to all models
This commit is contained in:
@@ -36,4 +36,8 @@ class Asset extends Model
|
||||
'type_id',
|
||||
'updated_at',
|
||||
];
|
||||
|
||||
public function structure() {
|
||||
return $this->belongsTo(App\Models\Structure\Structure::class, 'structure_id', 'location_id');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user