code result: get all sizes and colors but
i wanna get products colors and sizes
ex : get products have small size and color red
below my code :
$products=Product_property::where(function ($query) {
$query->whereIN('color',explode(',',$request['colors']));
})->where(function ($query) {
$query->whereIN('size',explode(',',$request['colors']));
});
how can solve this problem , any help
i wanna get products colors and sizes ex : get products have small size and color red
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire