Compare commits
2 Commits
277257fda2
...
ebd48cfbf6
| Author | SHA1 | Date | |
|---|---|---|---|
| ebd48cfbf6 | |||
|
|
369bacc38c |
@@ -13,6 +13,7 @@ final class CategoryController extends BaseController
|
||||
{
|
||||
$products = Product::with('price')
|
||||
->selectRaw('products.*')
|
||||
->distinct('products.id')
|
||||
->fromRaw('products, json_each(products.categories)')
|
||||
->whereRaw('json_each.value = ?', [$category])
|
||||
->orderByDesc('starred')
|
||||
|
||||
Reference in New Issue
Block a user