1Product::where(['product_id'=>$id])->with('category')
2->with('user')
3->with('productbrand.brand') // product has onetomany relation 'productbrand'
4//with table productbrand and productbrand has onetoone relation 'brand'
5//with table brand
6->first();