A father is a mahram for his daughter hence in general, there is no problem for his daughter to sleep next to him. However if there is fear of falling into sin, then the necessary precautions should be taken. As per akhlaq, it is better from the age of 5/6 for a father to not sleep next to his daughter