The hub is falling off or the axle shaft is sliding out?
If the hub then the two large lock nuts, the spindle threads, and the locking washer/tabs are in question.
If only the axle shaft slides out and if the big end looks like a gear then it is held in with a small domed steel cover and a few small bolts. Or the big end of the axle shaft has holes in the flange and studs on the end of the hub and nuts hold it in, sometimes with cone washers, or sometimes with just bolts.