What are some good foundation that won't leave flakey behind?

Meagan

Why is my foundation always flakey? What can i do to this other than applying moisturizer which i do? I use covergirl, elf and L'Oréal makeup products.