Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question