If you have regular access to electricity (over night), using an external battery is the simplest/easiest thing to do.
Using batteries is very common. Using solar is much, much less so. There might be a good reason for that.
The energy produced by the panels is highly dependant on light levels and orientation. Not something that works well if you are moving.