I am trying to find an item by id, but my column is a comma separated string(primaryCategory in below screenshot). I want to get this field in my result when query by any string (i.e. by 50,20,41 etc).
I know there could be options like whereIn, whereHas etc. but not able to find correct syntax. Please help me with this.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3ncS0f5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire