Is it legal to earn from taste-focused online food sales?

Can I just get payed by people depending on how good my food taste despite the looks made using ingridients from the internet and is that legal or illegal?

How do I check the rules in my area to see if there are any laws or rules that apply.