I tend to throw them over the hedge into next-door's garden. Of course, I recognise that they are probably homing snails and will return in time.
I've never been able to persuade a hedgehog to stick around. If I put catfood out I just get more cats, and they bully my cat, who is a mild-mannered and naive creature.