Trick is turn the welder up get a nice weld & let it cool before trying to undo the nut.
If you are doing it with an arc welder it will be a bit more of a challenge & I would weld a washer on instead of a nut as you are less likely to get flux inclusion in the weld.