Let me explain the actual case. I have three tables like:
Here shop_id of product table is the foreign key of shop table. Again shop_owner_id of shop table is foreign key of users table. Now I have product_id and I want to get shop_owner_id. I can do this as follows:
STEP 1. get `shop_id` from `product_id`
STEP 2. get `shop_owner_id` from `shop_id`
OR I can write a raw sql query to join these there table and get the shop_owner_id from product_id. But is there any descent way in laravel.



product-belongsTo->shopandshop-belongsTo->user(owner)?