It's possible to write in Laravel query reverse for whereJsonContains() query, something like: whereJsonDoesntContains()?
I have problem with data filtering in Model. This code works perfectly:
$query->whereHas('attributes', function($q) use ($attribute)
{
$q->where('attribute_product.attribute_id', $attribute->id)
->whereJsonContains('attribute_product.values', $someValue);
});
Now I want to create another query that returns products whereHas attributes with ID and JSON array in values column doesn't contain my variable.
Do you have any idea to do this?
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2PN7YeC
via IFTTT
Aucun commentaire:
Enregistrer un commentaire