A
A
an5432019-03-19 09:59:20
Laravel
an543, 2019-03-19 09:59:20

Is it possible in Laravel to haveOne relationship by 2 keys?

Greetings, there are 2 tables `gram_per_unit` (`ingredient_id`, `units_id`, `weight`), `recipe_ingredients` (`recipe_id`, `ingredient_id`, `amount`, `units_id`) how can I link them by keys units_id and ingredient_id ?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question