server/app/Models/World.php
// A world belongs to many objects
A world belongs to many objects
A world belongs to many objects
public function objects()
    {
        return $this->belongsToMany(GameObject::class, 'world_object', 'world_id', 'object_id')
            ->withPivot('id', 'name', 'position_x', 'position_y', 'position_z', 'rotation_x', 'rotation_y', 'rotation_z', 'scale_x', 'scale_y', 'scale_z')->withTimestamps();
    }
public function objects ( ) { return $ this -> belongsToMany ( GameObject :: class , 'world_object' , 'world_id' , 'object_id' ) -> withPivot ( 'id' , 'name' , 'position_x' , 'position_y' , 'position_z' , 'rotation_x' , 'rotation_y' , 'rotation_z' , 'scale_x' , 'scale_y' , 'scale_z' ) -> withTimestamps ( ) ; }
A world belongs to many objects
A world belongs to many objects