* "Mucho" is an adjective: It means "a lot" or "much," and it needs a noun or pronoun to modify.
* "Con" indicates companionship: It translates to "with," but it doesn't convey the action being performed.
To make the sentence correct, you need to specify the action you did with your dog. Here are some possibilities:
* "Ayer jugué mucho con mi perro." (Yesterday I played a lot with my dog.)
* "Ayer caminé mucho con mi perro." (Yesterday I walked a lot with my dog.)
* "Ayer hablé mucho con mi perro." (Yesterday I talked a lot with my dog.)
The correct sentence depends on what you actually did with your dog.