Hey guys,
I have a table with products and a table with categories. I don't use the products.id and categories.id because of a API connection. After connecting products and categories, i found out that the many 2 many is based on products.id and categories.id, can i change this to something else like categories.internal_id and products.internal_id? My system is now using the record ID instead of the internal_id:
["query"] "select seoshop_categories
.*, seoshop_category_product
.category_id
as pivot_category_id
, seoshop_category_product
.product_id
as pivot_product_id
from seoshop_categories
inner join seoshop_category_product
on seoshop_categories
.id
= seoshop_category_product
.product_id
where seoshop_category_product
.category_id
in (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"
["bindings"] array(15) {
[0] 1
[1] 2
[2] 3
}
["time"] 0.52
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community