I just thought of somthing

If I become resident in Portugal then when married to a fillipino i could apply for a eea family (free)visa to?

What would happen when we wanted to return to the uk?