I’ve always just left bowls of food out for my animals. Gets topped up every 4ish days. Fresh water every morning though.
Everyone’s mileage will vary though, some dogs and cats just can’t be left with food. They’ll eat till the vomit. I don’t think there’s any way to fix it, just roll with it.