Residence Permit / Marriage

Hi everyone. How are you all ? I am from Pakistan and I had been in a relationship with a Slovak girl for a long time. I entered Slovakia without visa and my status here in Slovakia is illegal. Somehow I have managed to get married to her. But I dont have a legal residence permit yet. Could any of you please guide me how to get a residence permit on base of marriage. I really love my wife and I can't imagine to live without her. Help me out please as I am in desperate need of it. Thanks :)

You know the foreign police station is all about rules.  "Somehow I have managed to get married to her." -- ???
This means you got married outside SVK?  If you got married in SVK you will need official documents and be registered.
I think you first need to explain, "Somehow I have managed to get married to her."...

i wonder the definition of "Somehow I have managed to get married to her" explain this mate ?