This describes how the dabase works (controllers/models/resources, refer to laravel notes) and looks (in phpmyadmin);
Made with this template
Database has a mixes table. Each mix has a user_id that’s linked to the users table. Each mix also is linked to a cuisine. The cuisines have a color column, which determines what it looks like on the front-page.
Users can also makes custom cuisines, which will have a user_id
There’s a separate ingredients table; each ingredient belongs to one mix. Each ingredient also has a (linked) measure (tbsp, ts, pinch etc), and possibly a linked alternative (e.g. ‘swap this spice for this’).
The mix_user table takes care of favorites: if you add a mix to favorites, it saves the mix_id and user_id in this table.
Then there is a shares table for when people share mixes with other users. The mix is saved as a json in this table, and will be added to the mixes table with a new id when the target_user clicks accept.
To start understanding the back-end, go to the laravel part