Answer the question
In order to leave comments, you need to log in
What are the options besides join to get related information?
There is a need to display some information on the website, let's say - lists of goods.
Goods are from different suppliers (users), in different regions. Information about them must also be displayed in the product card.
Those. with the products table in queries, there are joins on several tables:
select * from products, users, regions, cities ....
$product = Product::findById(123);
$user = User::findById($product->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